Old 08-13-2006   #1 (permalink)
Intermediate User
 
Neil_8_24_93's Avatar
 
Join Date: May 2006
Posts: 96

Send a message via AIM to Neil_8_24_93 Send a message via MSN to Neil_8_24_93
HTML Question - PLEASE READ

OK. When ever i put in this code:

<div id="navcontainer">
<ul id="navlist">
<li><a href="#">Home</a></li><br />
<li><a href="#">Affiliates</a></li><br />
<li><a href="#">Forums</a></li><br />
<li><a href="#">Contact</a></li><br />
<li><a href="#">Creator</a></li><br />
</ul>
</div>

I get this result:

Home Affiliates Forums Contact Creator (horizontally)

But i want to get it like this:

Home
Affiliates
Forums
Contact
Creator

Is there anyway to do it besides making a seperate div for every word?
Neil_8_24_93 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #2 (permalink)
Be Unique. Be Heard.
 
Jacorre's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 504

Can we see your CSS code as well?
__________________

Jacorre Studios Blog
Jacorre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #3 (permalink)
Intermediate User
 
Neil_8_24_93's Avatar
 
Join Date: May 2006
Posts: 96

Send a message via AIM to Neil_8_24_93 Send a message via MSN to Neil_8_24_93
Quote:
Originally Posted by Jacorre View Post
Can we see your CSS code as well?
Here:

#navcontainer{
margin: -20px 0 0 350px;
padding: 0;
height: 20px;
}

#navcontainer ul{
list-style-type: none;
text-align: center;
}

#navcontainer ul li{
display: block;
float: left;
text-align: center;
padding: 0;
margin: 0;
}

#navcontainer ul li a{
width: 78px;
height: 12px;
padding: 0;
margin: 0 0 10px 0;
color: #000000;
text-decoration: none;
display: block;
text-align: center;
font: normal 10px/18px "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, sans-serif;
}

#navcontainer ul li a:hover{
color: #CC3300;

}
Neil_8_24_93 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #4 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 6

well your navcontainer specifies 20px high, you might need more height than that, where is the navlist info?
__________________
Eric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #5 (permalink)
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
Try taking:

Code:
#navcontainer ul{
list-style-type: none;
text-align: center;
}
And make it this:

Code:
#navcontainer ul{
list-style-type: none;
}
Also make sure there is not any other CSS code affecting the ul, or li.


EDIT:

Or it could be:
Code:
#navcontainer ul li{
display: block;
float: left;
text-align: center;
padding: 0;
margin: 0;
}
Try removing the display:block;
Not sure if you should be defining it on a li.
__________________

www.gusmayo.com
- Maybe a story or two -


www.jaloobie.com
... your new home ...

www.webinkproductions.com
- professional web application design -
GoldNetX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #6 (permalink)
Intermediate User
 
Neil_8_24_93's Avatar
 
Join Date: May 2006
Posts: 96

Send a message via AIM to Neil_8_24_93 Send a message via MSN to Neil_8_24_93
Quote:
Originally Posted by GoldNetX View Post
Try taking:

Code:
#navcontainer ul{
list-style-type: none;
text-align: center;
}
And make it this:

Code:
#navcontainer ul{
list-style-type: none;
}
Also make sure there is not any other CSS code affecting the ul, or li.


EDIT:

Or it could be:
Code:
#navcontainer ul li{
display: block;
float: left;
text-align: center;
padding: 0;
margin: 0;
}
Try removing the display:block;
Not sure if you should be defining it on a li.
Thank you I will try it and tell you if it works.
Neil_8_24_93 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08-13-2006   #7 (permalink)
Intermediate User
 
Neil_8_24_93's Avatar
 
Join Date: May 2006
Posts: 96

Send a message via AIM to Neil_8_24_93 Send a message via MSN to Neil_8_24_93
The only method that worked for me was not defining it on a li. Thank you for your assistance.
Neil_8_24_93 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP BB Question (Please Read) Neil_8_24_93 HTML / PHP / ASP / JS 5 08-01-2006 10:17 PM
Want to make a website? Read this. Young Spartan HTML / PHP / ASP / JS 16 06-30-2006 02:12 AM
Content Mangament System Question LimitLess HTML / PHP / ASP / JS 3 06-01-2006 12:32 AM
Programming Books ConceptualMind HTML / PHP / ASP / JS 16 05-02-2006 06:48 PM


All times are GMT +1. The time now is 05:57 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT