dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Replacing <hr /> with image

  1. #1
    Join Date
    Dec 2002
    Posts
    6

    Question Replacing <hr /> with image

    Since it is possible to replace a bullet with an image using the list-style-image property is there any way within CSS to replace a horizontal rule with an image?

    Thanx G:-)>

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    Apparently not. The HR is a block element, but it does not contain anything.

  3. #3
    Join Date
    Nov 2002
    Location
    Hampshire, England
    Posts
    42
    Hi,

    I don't know if this is of any use but you could give the <hr /> a background image:

    hr {
    background-image: url(filename.gif);
    background-repeat: repeat;
    height: 20px;
    width: 100%;
    }


    Paul

  4. #4
    Join Date
    Dec 2002
    Posts
    6
    Thanks, Paul. It's worth a shot. G :-)>

  5. #5
    celebguy_dv Guest

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles