Results 1 to 4 of 4

Thread: horizontal rule

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default horizontal rule

    There isn't a way to have a horizontal rule fade out on each end using css or a java script instead of having to create an image - is there?

  2. #2
    Join Date
    Jun 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There is no way that i know of and the only way i think you can have fading is by using the IE filters (which means that of course it will only work with IE).

    Here is a solution and it is by no means eligant but it seems to work:

    PHP Code:
    <html>
    <
    head>
    <
    style type="text/css">
    <!--
    div.wrapper {
        
    width:100%;
        
    background-color:#cccccc;
    }

    div.lhr {
        
    floatleft;
        
    margin-right:0px;
        
    width50%;
        
    height:1px;
        
    font-size:0px;
        
    filter:progid:DXImageTransform.Microsoft.Gradient
        
    (GradientType=1,StartColorStr='#FFFFFF',EndColorStr='#CCCCCC');
    }
    div.rhr {
        
    margin-left:0px;
        
    width100%;
        
    height:1px;
        
    font-size:0px;
        
    filter:progid:DXImageTransform.Microsoft.Gradient
        
    (GradientType=1,StartColorStr='#CCCCCC',EndColorStr='#FFFFFF');
    }
    -->
    </
    style>
    </
    head>

    <
    body>

    <
    div class="wrapper">
    <
    div class="lhr"></div>
    <
    div class="rhr"></div>
    </
    div>

    </
    body>
    </
    html

  3. #3
    Join Date
    May 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if you have a solid background, you might be able to define the the color as a gradient through css

    http://www.mermeliz.com/html/gradient.htm

  4. #4
    Join Date
    Jun 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmm, If you read what i wrote that is what i suggested!

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
  •