- This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I was wondering if anyone could help me create a nav bar that goes across the top of a page opposed to down the side? I dont know why but I just cant get it to work!
I’m not sure to understand what you want to do. Do you have some code sample or design shot to show us? It would help us to understand and try some things.
like the menu at the top of this web page
Oh. Fairly simple, use an unordered list, and make <li> tags float with float: left;
. Done.
This might help: http://bit.ly/RBO0OI
Haha, @Paulie_D…classic!
@HugoGiraudel is correct, you just need to float your
Or…instead of float, you could use inline:block….a lot of developers prefer it.
Me…I’m happy to go with what works in each particular situation, both options have their advantages and disadvantages.
@Paulie_D: you mean display:inline-block?
FWIW I’ve always used display:inline for horizontal nav bars.
Sorry…Yes.
inline-block
thanks guys, that is great :)