how to make a horizontal rule

Reply

Join Date: May 2005
Posts: 23
Reputation: n2ads is an unknown quantity at this point 
Solved Threads: 0
n2ads's Avatar
n2ads n2ads is offline Offline
Newbie Poster

how to make a horizontal rule

 
0
  #1
Aug 12th, 2005
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?
N2Ads.com - Your online source for Indie Music, Music Promotion, and Music Resources!
Provided for and created by Music Artists and Fans.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 107
Reputation: madmital is an unknown quantity at this point 
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: how to make a horizontal rule

 
0
  #2
Aug 12th, 2005
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>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: how to make a horizontal rule

 
0
  #3
Aug 12th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 23
Reputation: n2ads is an unknown quantity at this point 
Solved Threads: 0
n2ads's Avatar
n2ads n2ads is offline Offline
Newbie Poster

Re: how to make a horizontal rule

 
0
  #4
Aug 15th, 2005
THANKS, will do!
N2Ads.com - Your online source for Indie Music, Music Promotion, and Music Resources!
Provided for and created by Music Artists and Fans.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 3
Reputation: itsmefrom? is an unknown quantity at this point 
Solved Threads: 0
itsmefrom? itsmefrom? is offline Offline
Newbie Poster

Re: how to make a horizontal rule

 
0
  #5
Aug 15th, 2005
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>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC