This apply to a navigation box, Would it be beter to use a div. with <hr/> and absolute positioning in bettween each link or a common table. I would rather use divs but i hear it isnt good to give a div absolute positioning, usaly if i dont give absolute it doesnt position right.
i seem to always want to use absolute positioning in a div to position somthing but if its not good i dont want to do it. Im still trying to get css and all of its abilities. i try to use class now if i need to absolute pos. somthing but im not even sure if thats correct
No need to use absolute positioning. I would stay away from that. Why would you use <hr /> between each link? If this is a menu you should use a unordered list, because a menu is a list (of links). Using unordered list is more semantically correct. <ul> <li><a href="#">link 1</a></li> <li><a href="#">link 2</a></li> </ul> And then you style the ul, you don't have to put a class on each and every li or a if your menu isn't exceptional complicated.
Cool thanks i never realized that, Should the unorderd list be in a div, I definaly dont want to use a table. before i just realized about an unorderd list i used to just compile the links into a div and and add <hr/> after each link to give it the table effect. Im still kinda new and I suck at useing css the proper way all the time. None of my sites can pass the css anylasis or what ever you call it.
The unordered list will often be placed in a div, but it don't have to. Depends on the complexity of what you are making. A good menu start: http://css.maxdesign.com.au/index.htm
i did one of the unorderd list today for the first time and i think an <hr/> would look better after each link, i like the line after each link effect, is there a diffrent way i should use enstead of <hr/>?
<ul class="menu"> <li><a href="#">link 1</a></li> <li><a href="#">link 2</a></li> </ul> HTML: CSS: .menu li { border-bottom: #000 1px solid; } Code (markup):
An unordered list can give a really good navigation. See this site for an example. And theres no need to put the unordered list in a table
If you are only looking for developing a navigational menu, I would opt for my favorite resource: www.css.maxdesign.com.au/listamatic All type of vertical and horizontal CSS menus to choose from.
Sometimes I style a table for navigation and sometimes a unordered list. They both seem to work good. I usually style like this for link, visited, hover and pass a php variable if i want active pages to stay highlighted, display: block; padding: 0px; margin: 0px; background-color: #7b7b7b; font: 14px Verdana; color: #f7c52c; text-decoration: none; font-weight: bold;