Navigation coding?
- Started
- Last post
- 7 Responses
- dbloc0
ul
- bainbridge0
Just realized the example is an image, not text. Let's pretend it's all font/text.
- bainbridge0
and what's the best way to give it to a programmer?
- nb0
<ul>
<li>Cover</li>
<li>Classic</li>
</ul>CSS it however you like. Margin-left or margin-right. You should be able to figure out which margin you need to set. Depends on the design.
- So margin sets the pixels in-between?bainbridge
- I should send a file to programmer with separated text?bainbridge
- Don't forget to add and style a's and in all applicable states — off, on, hover, whateverraf
- bainbridge0
This site doesn't use <ul><li>, how does it work?
- sublocked0
FWIW, people started using UL tags (unordered lists) of links because semantically it's more appropriate than simply a collection of DIVs.
It's a throwback to how older text-based browsers behave, like lynx on a unix system - but I'm wondering if these are simply vestiges of a time long gone.
Something to ponder for you HTML nerds.
Also, the basic CSS for doing something like that would be kinda like this:
ul.navigation {
margin: 0px;
list-style-type: none;
}
ul.navigation li {
float: left;
margin-right: 10px;
}
ul.navigation li:last-child {
margin-right: 0px;
}...don't forget to throw a clearing element to clear the floats afterwards too...
- it IS a list, though. That's isn't numbered. A collection of DIVs isn't anything. Code what you mean !! :)mikotondria3
- bainbridge0
Very helpful thnx guys.