Re: Horizontal scrolling



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.

.



Relevant Pages

  • Re: Conditional formatting - different cell colour for each year following from user input date?
    ... I just wasn't sure which cell address to ... You can also squeeze in one more color by starting off with an ordinary ... Ken Johnson ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Horizontal scrolling
    ... they all squeeze when the middle has to get bigger to contain all ... But what is the table width so that the poor browser can ... they would fight over what is left if the browser gives the middl cell ... Opera, at least my Opera, gives 300px to the left ...
    (alt.html)
  • tabular: Rows with fixed height
    ... I would like to build a tabular with rows of fixed height. ... Because I want to squeeze a word with big font size into a ... They cell above and beneath are empty, ... with the bigger font size. ...
    (comp.text.tex)
  • Attn: Fellknight, Tanya, barge whoever
    ... Doubt you guys will end up reading this but if you do, give me a call - you ... both should have my cell #. ... I might grab a room down there just to squeeze ...
    (rec.gambling.poker)
  • Re: MS vs Mozilla, Netscape
    ... not to mention color display modes. ... only with the layout tables in FP2003. ... to go in and change the code to the size specified in the layout cell ... will be when rendered in the browser - that is WYSIWYG ...
    (microsoft.public.frontpage.client)

Loading