Re: Horizontal scrolling
- From: ofiras <ofiasu@xxxxxxxxx>
- Date: Thu, 14 Aug 2008 11:30:35 -0700 (PDT)
On 14 אוגוסט, 12:26, dorayme <doraymeRidT...@xxxxxxxxxxxxxxx> wrote:
In article
<80aeaad1-2b08-416c-a600-22c88a958...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
ofiras <ofi...@xxxxxxxxx> wrote:
ofiras <ofi...@xxxxxxxxx> wrote:
Hi everyone,
I made a table in html, and I wrote in the left <td> width = 300, in
the middle <td>, width=70% and in the right <td>, width = 300, but
they all squeeze when the middle <td> has to get bigger to contain all
context. It's like the page don't want to be scrolled horizontally.
How can I make my <td>'s stay in the width I stated no matter what,
even if the page will have to have horizontal scrolling?
Please help,
You want three cells in a row with the outside ones at 300px and the
middle one to take up 70% of something. 70% of the whole table, let's
say. OK. But what is the table width so that the poor browser can
calculate what to make the middle cell?
Let's just imagine you set 100% for the width of the table itself,
meaning, roughly, 100% of the browser window's width, whatever it
happens to be.
<http://dorayme.890m.com/alt/squabblingCells.html>
If the browser window happened to be 2000px wide, since 70% of 2000 is
1400px, there is 600 left. The side cells would be happy. Under 2000,
they would fight over what is left if the browser gives the middl cell
priority. Over 2000, it is cream on the cake for hungry side cells but
maybe not for the author.
This might do you:
<http://dorayme.890m.com/alt/happyCellsButMiserableUser.html>
--
dorayme
Thanks, I didn't get exactly what I want, but I guess I'll use it,
it's ok for what I want to do.
Ofir.
Apparently it's not ok... I set the width of the table to 1500, and
gave the cells the widths - 300,900,300. Still, when the context of
the middle cell is getting out of the cell's width, the other cells
squeeze. How can I make my table to be at the width of the combined
width of the cells?
Please help,
Ofir.
In Safari 3, FF 2, iCab, you get what you want, I guess with:
<http://dorayme.890m.com/alt/setPxWidthTable.html>
but not with Opera. Opera, at least my Opera, gives 300px to the left
cell and 300px to the right cell but makes up its own mind about the
middle one, ignoring the 1500px spec for the table. Opera shows some
gumption!
Specifying the 70% for the middle as well to give some sort of
unmistakable message is a disastrous complication.
What really are you trying to do? Please tell us the real purpose, the
sort of webpage it is about etc, a URL would be good and this way we
might suggest how best to tackle the issue you face so it is happy in
almost all browsers. Making these particular conditions is just giving
us things to have fun with... <g>
--
dorayme
Ok, this is the html as it is when everything is ok:
http://testweb101.awardspace.com/index1.html
This is what I don't want to happen: http://testweb101.awardspace.com/index2.html
In the second one the side td's are squeezed. I want them to stay in
the same width I stated which is 300.
.
- Follow-Ups:
- Re: Horizontal scrolling
- From: Neredbojias
- Re: Horizontal scrolling
- References:
- Horizontal scrolling
- From: ofiras
- Re: Horizontal scrolling
- From: dorayme
- Re: Horizontal scrolling
- From: ofiras
- Re: Horizontal scrolling
- From: ofiras
- Re: Horizontal scrolling
- From: dorayme
- Horizontal scrolling
- Prev by Date: Re: OT: Olympics site
- Next by Date: Re: space between divs
- Previous by thread: Re: Horizontal scrolling
- Next by thread: Re: Horizontal scrolling
- Index(es):
Relevant Pages
|
Loading