944,110 Members | Top Members by Rank

Ad:
Aug 12th, 2005
0

how to make a horizontal rule

Expand Post »
i have tried making a horizontal rule <hr> that i can put under my text links but it always spaces them out by a huge amount. I am trying to achieve the effect that is kind of like what you see to the right of this page. But exactly like what you see on the left link set on www.seochat.com.

i am using dreamweaver can someone help?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
n2ads is offline Offline
23 posts
since May 2005
Aug 12th, 2005
0

Re: how to make a horizontal rule

It's most likely done with background images in DIVs or table cells

HTML and CSS Syntax (Toggle Plain Text)
  1. <style>
  2. .field { height: 20px; line-height: 20px;
  3. background: #ffffff url(somepicture.jpg); padding: 4px; }
  4. </style>
  5.  
  6.  
  7. <body>
  8. <div class="field">link1</div>
  9.  
  10. or
  11.  
  12. <TD class="field">link1</TD>
Reputation Points: 10
Solved Threads: 5
Junior Poster
madmital is offline Offline
119 posts
since Jun 2005
Aug 12th, 2005
0

Re: how to make a horizontal rule

Actually, that's achieved by setting the border property. CSS allows you to set border-top, border-bottom, border-left, and border-right, independently.

You can also set the border width and style, to get a grooved or inset border.

So, search for "CSS border properties", and you should be on the right track.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 15th, 2005
0

Re: how to make a horizontal rule

THANKS, will do!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
n2ads is offline Offline
23 posts
since May 2005
Aug 15th, 2005
0

Re: how to make a horizontal rule

Quote originally posted by n2ads ...
THANKS, will do!
styled HR

HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title>12345 12345 12345 12345</title>
  5. <style type="text/css">
  6. .hr,.hr100{
  7. background:#ff0000;/*NS FF OP */
  8. color:#ff0000;/*IE*/
  9. border:none;/*FF NS OP*/
  10. height:1px;/*FF NS OP*/
  11. width: 98%;
  12.  
  13. }
  14. .hr100{
  15. height:100px;
  16. background:#00ff00;/*NS FF OP */
  17. color:#00ff00;/*IE*/
  18. border:10px solid #0000ff;/*IE FF NS OP*/
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <hr />
  24. <p></p>
  25. <hr class="hr" />
  26. <hr class="hr100" />
  27. </body>
  28. </html>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
itsmefrom? is offline Offline
3 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: i-frame problem
Next Thread in HTML and CSS Forum Timeline: Are these sites validated across the board?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC