David Schwartz wrote:
> I'm trying to create a sidebar of fixed width. The following code
> works in IE7 but not FF2. What's the best approach to do this in both
> of these browsers?
Better to have a URL...
Not doctype so IE will be in quirks mode, all bets on constant rendering
across browsers is off.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
>
> <html>
> <head>
> <style>
> #right {
> float: right;
> background-color: Silver;
> height: 300px;
> width: 100px;
> margin-left: 50;
^^
50 what, bananas?
> }
>
> #left-1 {
> background-color: Lime;
> height: 100px;
> margin-right: 30;
^^
again 30 what?
> }
>
> #left-2 {
> background-color: Yellow;
> height: 100px;
> margin-right: 160;
^^^
> }
> </style>
> </head>
> <body>
> <div id="right">blah<br />blah<br />blah<br /></div>
^^^^
This *XHTML*? If so you are asking for more problems with MSIE...
> <div id="left-1">blah</div>
> <div id="left-2">blah</div>
> </body>
> </html>
>
> TIA,
> David
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com