cross-browser right sidebar
- From: David Schwartz <davids58@xxxxxxxxx>
- Date: Fri, 20 Jun 2008 09:48:18 -0700 (PDT)
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?
<html>
<head>
<style>
#right {
float: right;
background-color: Silver;
height: 300px;
width: 100px;
margin-left: 50;
}
#left-1 {
background-color: Lime;
height: 100px;
margin-right: 30;
}
#left-2 {
background-color: Yellow;
height: 100px;
margin-right: 160;
}
</style>
</head>
<body>
<div id="right">blah<br />blah<br />blah<br /></div>
<div id="left-1">blah</div>
<div id="left-2">blah</div>
</body>
</html>
TIA,
David
.
- Follow-Ups:
- Re: cross-browser right sidebar
- From: Neredbojias
- Re: cross-browser right sidebar
- From: Ben C
- Re: cross-browser right sidebar
- From: Jonathan N. Little
- Re: cross-browser right sidebar
- Prev by Date: Re: FF3 anyone?
- Next by Date: Looking for comprehensive reference of supported tags / attributes
- Previous by thread: Search Engine submission(s)
- Next by thread: Re: cross-browser right sidebar
- Index(es):
Relevant Pages
|