Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Not Sure If this Possible

    Alright guys

    Sorry to trouble you, but I am not sure if this possible or not?

    Please take a look at http://www.supreme-host.com/marketplace/marketplace.php

    I am trying to make the columns header text on the left hand side to be in the actual both horizontally and vertically.

    This is the css code that I am using for that particular part

    #l_sidebar h2 {

    background: url(http://www.supreme-host.com/marketpl...aderback.jpg);

    height: 45px;

    color: #FFFFFF;

    font-size: 12px;

    font-family: Verdana;

    font-weight: bold;

    margin: 0px 0px 10px 0px;

    padding: 1px 0px 1px 5px;

    line-height: 20px;

    }


    I know I can create images for each separate header and do it that.. But is there any way that I can do it in the css code?

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Byronwells,
    Change your line-height, like this -
    Code:
    #l_sidebar h2 {
    
    	background: url(http://www.supreme-host.com/marketplace/images/headerback.jpg);
    	
    	height: 45px;
    
    	color: #FFFFFF;
    
    	font-size: 12px;
    
    	font-family: Verdana;
    
    	font-weight: bold;
    
    	margin: 0px 0px 10px 0px;
    
    	padding: 1px 0px 1px 5px;
    
    	line-height: 42px;
    	}
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    Byronwells (12-07-2009)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •