|
|
#1 |
|
New Member
![]() Join Date: Jan 2012
Posts: 22
|
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 |
|
|
|
|
|
#2 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
__________________
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"); } |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Jan 2012
Posts: 22
|
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? |
|
|
|
|
|
#4 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
you need to apply this rule to the lis:
Code:
ul li{ display:inline }
__________________
Conor |
|
|
|
|
|
#5 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
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"); } |
|
|
|
|
|
#6 |
|
Gold Member
![]() Join Date: Feb 2011
Location: Australia
Posts: 369
|
You also need to close your li tags properly such as : </li>
__________________
Jason H. DHDdirect.com Domains - Hosting - Design |
|
|
|
|
|
#7 |
|
Silver Member
![]() Join Date: Jan 2011
Posts: 214
|
Yeah right. This is a little matter but if you missed this surely it will ruin your style!
|
|
|
|
|
|
#8 |
|
New Member
![]() Join Date: Jan 2012
Posts: 22
|
<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? |
|
|
|
|
|
#9 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
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"); } |
|
|
|
|
|
#10 |
|
New Member
![]() Join Date: Jan 2012
Posts: 22
|
Yes. its closed in the code. Sorry for the confusion
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|