I tend to treat button rows (I call them button trays) like any other list of links, and use floats, with markup something like this: <div class="buttonTray"> <div class="start"></div> <ul> <li class="buttonContainer"><a href=".." class="somebutton">Button Label</a></li> </ul> <div class="end"></div> </div>
the UL has margins, padding, list-style-type reset, .buttonTray li has float: left, .end has clear: both. between .buttonContainer and .somebutton you can make a pretty graphically rich button look and feel using background images (sliding doors etc.) .somebutton should have white-space: nowrap (and probably display: block) - that's the piece you are missing to avoid line-breaks in the middle of your "buttons" .buttonContainer will probably end up needing a height hack for IE (e.g. _height: 1%, or the holly hack if you prefer), as well as position: relative For your case you're not just lining them up in a single left aligned row. So you need a sub-layout. You'll probably have some classes for your "columns", like .cols2, .cols3, .cols1 and so on, that give appropriate widths to the containers. Semantically, all the buttons belong in one list(?), so you might need to id each container (#btn1, #btn2, etc.), and add clear: both / left to create your "rows". About this time you may start questioning the wisdom of removing those tables, but your CSS enlightenment will pull you through :) One thing you gain is some control over source order (depending on whether you float right or left you can entirely reverse the order of the buttons), so sensible tab indexes (indices) can be a nice bonus you get for free Sam On 10/5/06, Peter Michaux <[EMAIL PROTECTED]> wrote: > Hi, > > I have been converting some old table-based, doctype-free pages to > HTML 4.01 strict and with tableless layout and semantic markup. I am > not free to make many visual changes since users are currently > comfotable with the layout. > > I am stumped on what to do about laying out some horizontal rows of > buttons as shown in this link. > > http://peter.michaux.ca/temp/buttons.html ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
