|
Posted by mbstevens on 06/01/06 21:55
Jonathan N. Little wrote:
> mbstevens wrote:
>
>> fred.haab@gmail.com wrote:
>>
>>> Now, I know it seems like I'm really reaching to try to disprove the
>>> philosphy that divs can be used anywhere tables can - but I really,
>>> actually, honestly ran into this today... I just wanted a small list of
>>> options for my users... the page is very simple - the title of the page
>>> and some options.
>>>
>>
>> Ok, I see the problem. You have to ask yourself if the difference in
>> rendering is really worth moving away from semantic markup.
>> The CSS versions only look a bit visually awkward in instances of
>> truly pathological text size or browser window size, and the CSS
>> versions are still usable and accessible.
>>
>> However, I'll spend a bit of time trying to come up with a fix,
>> because I find your problem interesting. If I should discover a way
>> that works better I'll post it, although I don't know of one off-hand.
>
>
> The only way I can see use a wrapper and tweak to suit...
Yes, and I find that the tweaking becomes quite easy if you
give a <ul> width in ems.
http://www.mbstevens.com/centering.html
This seems to perform better than the CSS examples that fred.habb gave.
It should be no problem to take a test of the text length for server
side generated pages, too, and spit out corrected CSS with the page. He
mentioned generating the things with javascript, too, I believe. All I
can say is -- horrors!
Navigation:
[Reply to this message]
|