Previous Message
Next Message

Re: [css-d] How to replaces tables/frames with CSS?

Sent by Al Sparber on 29 January 2002 17:05


----- Original Message -----
From: "noah" [EMAIL-REMOVED]>
To: "css discuss" [EMAIL-REMOVED]>
Sent: Tuesday, January 29, 2002 4:02 PM
Subject: RE: [css-d] How to replaces tables/frames with CSS?


> At 10:24 AM 29/01/2002, RUST Randal wrote:
> >Actually, this will work.  I forgot I had already done this once before:
>
> <snip>
> >
> >   #left {
> >     position: relative;
> >     float: left;
> >     width: 20%;
> >     background-color: gray; }
> >
> >   #main {
> >     position: relative;
> >     float: right;
> >     width: 80%;
> >     background-color: red; }
> </snip>
>
> There are probably a thousand reasons why I'm wrong about this, but it
> seems to me that this is where the CSS box model becomes very annoying.
> Because margins / borders / padding are added to the width of the div,


That is the way CSS should be written for a 2-box model if the author wants
to make a statement about v4 browsers. There is a real-world solution that
will achieve very similar effects, but will look great in, for example,
Netscape 4.

To each his own, I guess :-)

Al Sparber- PVII
________________________________________________________
We wrote the book on Dreamweaver Magic
Dreamweaver Magic Tools and Tutorials: http://www.projectseven.com
PVII DW Newsgroup: news://forums.projectseven.com/pviiwebdev
Previous Message
Next Message

Possibly related: