SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: horizontal rule

  1. #1
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    horizontal rule

    Hi,
    Hi,

    Im using the horizontal rule tag set to display:none in my markup to tidy things up and makes things clear for users browsing without styles.

    I now want to use the horizontal rule for something else and tried this in my markup:

    Code:
    <hr class="article" />
    and this in my css:
    Code:
    hr.article { color: #ccc;}
    but its not working. Is there something i should know?

  2. #2
    [Biped] LJK's Avatar
    Join Date
    Jun 2004
    Location
    In My Jammies
    Posts
    761
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi -
    Predictably so, browsers differ on what should be displayed
    with a few style rules: try adding background:#cccccc none;

    El
    F-Fox 2.0 :: WIN :: el design :: US

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, remember to reset to display:block, or it won't be displayed at all.
    Birnam wood is come to Dunsinane


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
  •