|
|
 |
RE: FN-FORUM: [CSS] Freezing thead - now 'Expandable columns in CSS'
date posted 21st August 2003 10:05
Ta, I'll give it a go=20
-----Original Message-----
From: Luke Perman [EMAIL REMOVED]
Sent: 21 August 2003 09:41
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: [CSS] Freezing thead - now 'Expandable columns in
CSS'
hi andy,
just do this:
in the head of your document put:
then in the body have:
content here content here content=20
here
... and repeat for as many rows as you want ....
you could put all the rows inside another DIV if you really wanted to,=20
i.e. if you want to absolutely position the whole lot somewhere on the=20
screen, but the best way to toggle the width of everything is simply to=20
change the 'width' attribute of the .row CSS to something fixed, and=20
then play with the % widths of each span class.
i just added the background colours so that it is easy to see what is=20
happening...
**note that the 'last' span has no 'float' attribute assigned to it!**
hmmm.... time for coffee methinks
luke
On Wednesday, August 20, 2003, at 11:02 PM, Andy Macnaughton-Jones=20
wrote:
>
> On a slightly different tangent...
>
> For a table layout;
>
>
>
>
>
>
>
>
>
>
>
>
>
> The columns will adjust to the widths of the contents (if you define
it
> that way)
>
> But trying to do the same thing with CSS;
>
>
>
>
>
>
>
>
>
>
>
>
> Doesn't because the 2 inner divs are treated as completely separate
> things
>
> How do you get CSS to do that, i.e., not specifiy the widths - either=20
> as
> an exact width or a %
>
> Cheers
> Andy
>
>
> -----Original Message-----
> From: Nick Grimshaw [EMAIL REMOVED]
> Sent: Wednesday, August 20, 2003 9:19 PM
> To: Andy Macnaughton-Jones
> Subject: RE: FN-FORUM: [CSS] Freezing thead
>
>
>
> Antony:
>> column alignment would be a pain, besides it should work using
>> overflow on the tbody but ie doesn't do it... poo
>
> Actually, it shouldn't work.
> http://www.w3.org/TR/REC-CSS2/visufx.html#overflow says that overflow
> applies to 'block-level and replaced elements', of which a is
> neither. I don't think there's any (sensible) way of doing it, which
is
> especially stupid given that the HTML standard rattles on about 'This
> division [of tables into thead, tbody and tfoot] enables user agents
to
> support scrolling of table bodies independently of the table head and
> foot.' (from http://www.w3.org/TR/html4/struct/tables.html#rowgroups )
>
> - Nick Grimshaw
> { if you're not part of the solution, you're part of the precipitate.
}
>
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> redmail.com - webmail with a difference!
> 10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a
year
> IMAP, POP3, Spam Filtering and Anti Virus as standard. Visit
> http://www.redmail.com/?fl-signup to join.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3Dredmail.com - webmail with a difference!
> 10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a
year
> IMAP, POP3, Spam Filtering and Anti Virus as standard.
> Visit http://www.redmail.com/?fl-signup to join.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>=20
=3D=3D=3Dredmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard.
Visit http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|