![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Objective: Using an HTML list, create a horizontal nav menu with these characteristics: - All menu items have the same width at all times. - When the window width is reduced, the menu items stack, rather than creating a horizontal scroll bar. - The menu cluster is always centered on the window. ul.menulist li p { |
#3
| |||
| |||
|
|
Chris Beall wrote: Objective: Using an HTML list, create a horizontal nav menu with these characteristics: - All menu items have the same width at all times. - When the window width is reduced, the menu items stack, rather than creating a horizontal scroll bar. - The menu cluster is always centered on the window. ul.menulist li p { display: table-cell; width: 10em; margin: 0; padding: 0; } and wrap the links in the <p> element: li><p><a href="#">Dummy1</a></p></li This has other issues but meets the stated requirements. Jim, |
#4
| |||
| |||
|
|
Anyone else care to try? |
#5
| |||
| |||
|
|
Chris Beall <Chris_Beall (AT) prodigy (DOT) net> wrote: Anyone else care to try? This issue has been dealt with, several of the regulars here have pages up on this, search the archive (keywords "inline-block" and "centered"). Spartanicus, |
#6
| |||
| |||
|
|
Spartanicus wrote: (snip) This issue has been dealt with, several of the regulars here have pages up on this, search the archive (keywords "inline-block" and "centered"). Spartanicus, I got 32 hits, including two references to pages you wrote. I've tried to interpret what I read there and have added it to the demo page at http://pages.prodigy.net/chris_beall...al%20list.html It now works as well as can be expected in IE 6. There's an odd border-position issue with Firefox (and NN 7.1) and Safari which I would have to resolve. Any suggestions on that? Chris Beall I've now determined that the border offset is related to line-height: |
![]() |
| Thread Tools | |
| Display Modes | |
| |