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 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    66
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Can't verify my css code.

    I been trying every thing that I can do to change my css code to make it become verifed but having a really hard time to get it to do so.

    It was fine for the logest time but now I got to problems.

    the code is as follows:

    #bgfooter{
    height:31px;
    font-family:"Verdana";
    font-size:10px;
    text-align:center;
    vertical-align:middle;
    background:url(../Images/footer.gif) repeat-x bottom;}

    The part that is not being verifed is :

    background:url(../Images/footer.gif) repeat-x bottom;}

    it seems to work fine but will not verify. This really bothers me.

    my site is robinsden.co.cc All of my pages use this same css in them.

    Thanks.
    My web site can be view here
    http://robinsden.com

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    It won't validate, I think, because you've specified the vertical position of the background image but not the horizontal position. Browsers will (mostly) default it to "center" anyway which is why it looks OK.

    Try:

    Code:
    #bgfooter{
    	height:31px;
    	font-family:"Verdana";
            font-size:10px; 
    	text-align:center;
    	vertical-align:middle;
    	background:url(../Images/footer.gif) repeat-x center bottom;}

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The correct term is validate not verify.
    According to W3C what you have should be valid but in order to make the validator say its valid you need to make it bottom left, bottom center, or bottom right.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder oldcrazylegs's Avatar
    Join Date
    Feb 2004
    Location
    East Moline Illinois USA
    Posts
    414
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Code:
    #bgfooter{
    	height:31px;
    	font-family:"Verdana";
            font-size:10px; 
    	text-align:center;
    	vertical-align:middle;
    	background-image:url(../Images/footer.gif) repeat-x center bottom;}


  •  

    Posting Permissions

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