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> tag and a right-aligned image

Discussion in 'CSS' started by Gray, Nov 2, 2004.

  1. #1
    Hi,

    I want to place a horizontal rule across about 95% of the width of a page, then have an image on the right end of the hr, touching the right side of the page.

    If the page is resized I want the hr to be dynamic, but I still want the image to stay on the right side of the page.

    Is this possible, and if so, can anyone help?

    Also, Firefox shows my <hr> in black, Opera and IE6 paints them white. I can fix this using <hr color="#ffffff"> but then this breaks the validation at w3c.org

    Isn't web design fun?!

    Gray
     
    Gray, Nov 2, 2004 IP
  2. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds like a stickler there. Without putting them in div's or tables, I don't think it can be done.
     
    mopacfan, Nov 2, 2004 IP
  3. Trance-formation

    Trance-formation Peon

    Messages:
    598
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've never tried it, but could you set the colour of the <hr> in a CSS file?
     
    Trance-formation, Nov 2, 2004 IP
  4. Gray

    Gray Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yep, that's how it works in IE and Opera, just not Firefox.

    Strange.
     
    Gray, Nov 2, 2004 IP
  5. xml

    xml Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try background-color with the same value as color in the CSS.

    Do do the positioning you want u would have to change the HR display properties, and place the HR and IMG in a DIV.
     
    xml, Nov 2, 2004 IP