[ale] learning CSS
aaron
aaron at pd.org
Tue May 23 01:57:35 EDT 2006
On Monday 22 May 2006 23:51, James P. Kinney III wrote:
> On Mon, 2006-05-22 at 23:22 -0400, William Witt wrote:
> > This is what I've come up with for my content pane:
> >
> > div.contentpane {
> > background-color: #ffffcc;
> > position: absolute;
> > top: 75px;
> > height: expression(document.body.clientHeight - 75 + "px");
> > bottom: 0;
> > left: 100px;
> > width: expression(document.body.clientWidth - 100 + "px");
> > right: 0px;
> > overflow: auto;
> > padding-left: 75px;
> > padding-right: 50px;
> > padding-top: 50px;
> > padding-bottom: 75px;
> > }
> >
> > Firefox ignores the expression lines and IE ignores the bottom and right
> > lines, so it all comes out in the wash.
>
> Hmm. I guess it's not good code practice to do a basic browser detect
> and redirect IE browsers to a "get Firefox" page.
No, that would be in the realm of GREAT code practice. ;-)
peace
aaron
More information about the Ale
mailing list