Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 01-17-2012, 07:26 PM   #1
New Member
 
Join Date: Jan 2012
Posts: 22
Default HTML5 unsorted list issue

He guys.
As you guys suggested I am working with HTML5 at the moment. I am using dreamweaver.
Now I have a problem I don't really now know to solve it.

I want to make an easy navigation
I use this HTML code


<ul class="cat-meta">

<li><a href="index.html">Home</a><li>
<li><a href="about.html">About</a><li>
<li><a href="services.html">Services</a><li>
<li><a href="products.html">Products</a><li>
<li><a href="contact.html">Contact</a><li>
</ul>


The problem is: They are beneath eachother and I have no idea why they aren't behind eachother like I want them too.

I didn't use a br, as u can see. No P? What am I missing?

If this is in the wrong forum, i am sorry
Skyn2 is offline   Reply With Quote


Old 01-17-2012, 08:25 PM   #2
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
Default

TUTORIAL: CSS Menu (Basic)
__________________
if (headhurts == "possibly") {
alert ("keep going!");
}
else if (headhurts == "yes") {
alert ("go to sleep");
}
else if (headhurts == "damn !@#$ mofo scripts...") {
alert ("give up and have a beer!");
}
else {
alert ("watch TV");
}
Phreaddee is offline   Reply With Quote
Old 01-17-2012, 08:49 PM   #3
New Member
 
Join Date: Jan 2012
Posts: 22
Default

Thank you for the link.

Shouldn't the link work without the CSS?

The link is great, but it is not what I am looking for.
It's lined up the way I want, but I don't want a 'fixed menu'.

I am asking is: How can I make my menu go like:
Home Product Contact

instead of:

Home
Product
contact

What CSS rule is it that does this?
Skyn2 is offline   Reply With Quote
Old 01-17-2012, 10:31 PM   #4
Gold Member
 
conor's Avatar
 
Join Date: Oct 2008
Location: Ireland
Posts: 349
Default

you need to apply this rule to the lis:

Code:
ul li{ display:inline }
__________________
Conor
conor is offline   Reply With Quote
Old 01-17-2012, 11:32 PM   #5
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
Default

of course the css is needed, otherwise its just unstyled html
__________________
if (headhurts == "possibly") {
alert ("keep going!");
}
else if (headhurts == "yes") {
alert ("go to sleep");
}
else if (headhurts == "damn !@#$ mofo scripts...") {
alert ("give up and have a beer!");
}
else {
alert ("watch TV");
}
Phreaddee is offline   Reply With Quote


Old 01-18-2012, 12:51 AM   #6
Gold Member
 
Join Date: Feb 2011
Location: Australia
Posts: 369
Default

You also need to close your li tags properly such as : </li>
__________________
Jason H.
DHDdirect.com
Domains - Hosting - Design
DHDdirect is offline   Reply With Quote
Old 01-18-2012, 03:51 AM   #7
Silver Member
 
Join Date: Jan 2011
Posts: 214
Default

Quote:
Originally Posted by DHDdirect View Post
You also need to close your li tags properly such as : </li>
Yeah right. This is a little matter but if you missed this surely it will ruin your style!
jumpingspider is offline   Reply With Quote
Old 01-18-2012, 05:15 AM   #8
New Member
 
Join Date: Jan 2012
Posts: 22
Default

<ul class="cat-meta">

<li><a href="index.html">Home</a><li>
<li><a href="about.html">About</a><li>
<li><a href="services.html">Services</a><li>
<li><a href="products.html">Products</a><li>
<li><a href="contact.html">Contact</a><li>
</ul>

I did not miss that ;-)

If I look in the CSS:

.cat-meta {
display: inline;
}

But still, they are not behind eachother, but beneath eachother?
Skyn2 is offline   Reply With Quote
Old 01-18-2012, 05:34 AM   #9
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
Default

Again close your li as </li>

And target the li NOT the ul.
.cat-meta li {
Display:inline;
}
__________________
if (headhurts == "possibly") {
alert ("keep going!");
}
else if (headhurts == "yes") {
alert ("go to sleep");
}
else if (headhurts == "damn !@#$ mofo scripts...") {
alert ("give up and have a beer!");
}
else {
alert ("watch TV");
}
Phreaddee is offline   Reply With Quote
Old 01-18-2012, 05:43 AM   #10
New Member
 
Join Date: Jan 2012
Posts: 22
Default

Yes. its closed in the code. Sorry for the confusion
Skyn2 is offline   Reply With Quote
Reply

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



All times are GMT. The time now is 11:44 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.