SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need an effect in css

    what would I use to get a simple 1 px line of whatever color I want without it beinga border, need it to be like having a table with a spacer in it so it clings to whats above it whithout a space. Unlike a horizontal rule.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,784
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    I'm not sure if this is what you are looking for but here goes anyway
    Code:
    CSS
    <style>
    .line {border-top:1px solid #000;width:300px;height:0px;overflow:hidden}
    </style>
    
    Html
    <div class="outer">Hello</div>
    <div class="line"></div>
    <div class="outer">Hello</div>
    Hope that helps.

    Paul

  3. #3
    Non-Member ZealotDesigns's Avatar
    Join Date
    Nov 2003
    Location
    Columbiana, Ohio
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect! Thank you, I knew it was close to that but I Couldnt remember what it was.


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
  •