Re: <td width=...> in IE
am 23.10.2007 10:05:35 von jkorpela
Scripsit jodleren:
> I have problems with the following code in IE, but it works well in
> Firefix.
>
>
>
> a b |
> c |
>
>
> The red fox jumped over the lazy dog |
>
>
In a element, the width attribute specifies (by HTML specs) the
suggested minimum width, so both IE and Firefox behave by the specs, just
differentöy.
> Idea: the top row, cell 1 - as wide as possible, cell 2, specified
> width - (or as short as possbile if that can help. Setting cell one
> just to take up all remaining space is ok too)
> IE cannot handle this. Any suggestions?
Use . This effectively sets, as a side
effect, the total width of the table to 100%, but this seems to be what you
want.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: <td width=...> in IEam 23.10.2007 11:12:03 von Sonnich Jensen
On Oct 23, 11:05 am, "Jukka K. Korpela" wrote:
> Scripsit jodleren:
>
> > I have problems with the following code in IE, but it works well in
> > Firefix.
>
> >
> >
> > a b |
> > c |
> >
> >
> > The red fox jumped over the lazy dog |
> >
> >
>
> In a element, the width attribute specifies (by HTML specs) the
> suggested minimum width, so both IE and Firefox behave by the specs, just
> differentöy.
>
> > Idea: the top row, cell 1 - as wide as possible, cell 2, specified
> > width - (or as short as possbile if that can help. Setting cell one
> > just to take up all remaining space is ok too)
> > IE cannot handle this. Any suggestions?
>
> Use . This effectively sets, as a si=
de
> effect, the total width of the table to 100%, but this seems to be what y=
ou
> want.
Thank you that explains it. The solution is is ok, but requieres
nested tables to have the same. I'll play around with it to see what
is possbile here.
Other ideas still welcome.
Thanks
Sonnich
Re: <td width=...> in IEam 23.10.2007 12:27:48 von jkorpela
Scripsit Sonnich Jensen:
[a fullquote, the usual way of indicating lack of comprehensive readins ]
> Thank you that explains it.
Which "that" explains "it"? (Please don't answer. This was a rhetoric
question.)
> The solution is is ok,
It depends on what the problem really is. It wasn't explained, so I decided
to answer just the question that was asked.
> but requieres nested tables to have the same.
Same what? What should have the same what and why? And why would you need
nested tables? Any "solution" that requires nested tables is a non-solution,
often to a non-problem.
> Other ideas still welcome.
How about telling the real problem, demonstrating it with a URL, and using
consistently your real name, if you were the original poster?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: <td width=...> in IEam 24.10.2007 18:59:27 von Richard
On Oct 23, 2:23 am, jodleren wrote:
> Hi!
>
> I have problems with the following code in IE, but it works well in
> Firefix.
>
>
>
> a b |
> c |
>
>
> The red fox jumped over the lazy dog |
>
>
>
> Idea: the top row, cell 1 - as wide as possible, cell 2, specified
> width - (or as short as possbile if that can help. Setting cell one
> just to take up all remaining space is ok too)
> IE cannot handle this. Any suggestions?
>
> WBR
> Sonnich
width=25? 25 what? Pixels or percent?
width="25" equals pixels where as "25%" defines percent.
First, you would need to define width in the table tag.
Otherwise it assumes 100%.
Defining the width of only one cell would play havoc on the others as
data changes within them.
Define the first as say "50" then the second as "25", leaving the 3rd
to use what ever is left.
At least this way the cells would keep some sort of order in them.
Re: <td width=...> in IEam 24.10.2007 20:02:47 von lws4art
richard wrote:
> On Oct 23, 2:23 am, jodleren wrote:
>> Hi!
>>
>> I have problems with the following code in IE, but it works well in
>> Firefix.
>>
>>
>>
>> a b |
>> c |
>
>
> width=25? 25 what? Pixels or percent?
> width="25" equals pixels where as "25%" defines percent.
It would be pixels. The HTML attribute is in pixels unless you
explicitly use the "%" unit identifier width="25%" T think you are
confusing it with CSS properties where unit identifiers are required[1]
for length values, width: 25px;
[1]optional for "0" values and with line-height property.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
| |