1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

<hr/> style problem?

Discussion in 'CSS' started by Imozeb, May 22, 2010.

  1. #1
    How do I get my line break tag to work on my page? It is in the 'file info' section between the second row of text in that section and the third row of text. For some reason it is not appearing at all, but if you look at the source you will see I put it there. Could someone take a look and help me figure out why it isn't appearing?

    http://www.foreverplaying.com/script/games/game_blade.php

    Also, when I took a look the <hr/> tag, it seemed that alot of the styles were deprecated. Is there a new way to create line breaks or am I missing something?

    Thanks!
     
    Imozeb, May 22, 2010 IP
  2. Wtfuxbbq

    Wtfuxbbq Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You've used the wrong css property to change its colour. Use "background-color" instead of "color".

    The hr tag's attributes are deprecated as all styling is to be done via css.
     
    Wtfuxbbq, May 22, 2010 IP
  3. zukilover

    zukilover Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    better using border for this purpose.
     
    zukilover, May 22, 2010 IP
  4. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Okay. Thanks.
     
    Imozeb, May 23, 2010 IP
  5. master99

    master99 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you change <hr> coloruse Use "background-color"
    learn more about <hr> attributes see below link

    tutorials99.com
     
    master99, May 23, 2010 IP
  6. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #6
    I use this for all my sites. Works in all IE,FF, etc.

    
    hr {color:#CCC;background-color:#CCC;height:1px;border:none; width: 96%; text-align: center;}
    
    Code (markup):
     
    AtSeaDesign, May 25, 2010 IP