User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,592 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,694 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2503 | Replies: 4
Reply
Join Date: May 2005
Posts: 23
Reputation: n2ads is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
n2ads's Avatar
n2ads n2ads is offline Offline
Newbie Poster

how to make a horizontal rule

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Denmark, EU
Posts: 102
Reputation: madmital is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: how to make a horizontal rule

  #2  
Aug 12th, 2005
It's most likely done with background images in DIVs or table cells

<style>
.field { height: 20px; line-height: 20px;
background: #ffffff url(somepicture.jpg); padding: 4px; }
</style>


<body>
<div class="field">link1</div>

or

<TD class="field">link1</TD>
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: how to make a horizontal rule

  #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  
Join Date: May 2005
Posts: 23
Reputation: n2ads is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
n2ads's Avatar
n2ads n2ads is offline Offline
Newbie Poster

Re: how to make a horizontal rule

  #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  
Join Date: Aug 2005
Posts: 3
Reputation: itsmefrom? is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
itsmefrom? itsmefrom? is offline Offline
Newbie Poster

Re: how to make a horizontal rule

  #5  
Aug 15th, 2005
Originally Posted by n2ads
THANKS, will do!

styled HR

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>12345 12345 12345 12345</title>
<style type="text/css">
.hr,.hr100{
background:#ff0000;/*NS FF OP */
color:#ff0000;/*IE*/
border:none;/*FF NS OP*/
height:1px;/*FF NS OP*/
width: 98%;

}
.hr100{
height:100px;
background:#00ff00;/*NS FF OP */
color:#00ff00;/*IE*/
border:10px solid #0000ff;/*IE FF NS OP*/
}
</style>
</head>
<body>
<hr />
<p></p>
<hr class="hr" />
<hr class="hr100" />
</body>
</html>
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 11:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC