Reply to Re: Prevent listbox from resizing horizontally

Your name:

Reply:


Posted by Ben C on 06/29/07 07:50

On 2007-06-28, dorayme <doraymeRidThis@optusnet.com.au> wrote:
> In article
><XsTgi.241006$p47.95439@bgtnsc04-news.ops.worldnet.att.net>,
> "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote:
>
>> dorayme wrote:
>>
>> > Froefel <hansdeschryver@gmail.com> wrote:
>> >
>> >> I'm looking for a way to restrict a listbox from resizing
>> >> horizontally.
>> >>
>> >> The listbox sits within a <td> and has a style="width=100%;"
>>
>> What is a listbox?
>>
>> > Your meaning is not clear. Show a URL of what you are trying.
>>
>> Certainly would help. Does he mean ...
>
> Whatever he means, it made me aware (or more aware, I clean
> forget) of an interesting difference between iCab and the other
> browsers I have, at least in respect to the page code I gave.
> Basically, it seems, iCab respects fixed width of table cells to
> the extent of throwing up a scroll bar rather than shortening the
> width even when there is plenty room to do so. This point does
> not need lists so I removed from previous code:
>
> <http://tinyurl.com/34nojy>

Do you mean when the viewport is narrowed to about 400px you get a
horizontal scrollbar for the whole page? I think they all do that.

Where you do get some variable mileage is with this kind of thing:

td { background-color: pink; }

<table>
<tr>
<td>
dihydromethylcarboxythializinone
</td>
<td>
<div style="width: 20px; overflow: scroll">
dihydromethylcarboxythializinone
</div>
</td>
<td>
<div style="width: 20px">
dihydromethylcarboxythializinone
</div>
</td>
</tr>
</table>

Each cell contains a long and unbreakable word, much wider than the
space available. But how wide should the <td> be? Everyone makes the
first cell wide enough for the text (i.e. much more than 20px). Opera
distinguishes between cases 2 and 3-- it seems to pay attention to the
value of overflow on the div.

As for the third cell, Opera treats it like the first, but FF and
Konqueror both make it 20px wide.

What's supposed to happen? I don't think I've ever found either of the
second two cases explained in a specification.

They all seem to make a real mess of the scrollbar. I can't actually
scroll to see the rest of the word in any of them.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация