SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2008
    Location
    Port Elizabeth, South Africa
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    h2 inside a div problem

    Hi - please can anyone see why browsers are not seeing the css h2.blue on this page (I see firebug doesn't see it either):

    http://www.greensmoothie.com/water/alkaline-berkey.php

    css:
    h2.blue {padding:5px 0 0 20px; background:white; font:bold 1.2em/1.5 "Arial Black",sans-serif; color:blue; text-align:left}

    html:
    <div class="flft w70">
    <h2 class="blue">I No Longer Support Water Ionizers...</h2></div>

    Only dodo IE6 obeys the css!

    thank you - Val

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,516
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    It's because you have an error in the css on the line before:

    Code:
    h2.lftsm {display:block; padding:10px 0;
    	font:bold 1.1em Helvetica,sans-serif; text-align:left}
    	font:bold 1.2em "Arial Black",sans-serif; color:blue; text-align:left; border:1px solid blue;}
    Note the bracket after text-align:left which should be a semi:colon.

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2008
    Location
    Port Elizabeth, South Africa
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi - good to hear from you Paul thank you! It works now. That line above h2.blue was only temp to tell me how to code h2.blue and I forgot to delete it! I always feel so dumb when I see my error is because I didn't look closely enough.


Bookmarks

Posting Permissions

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