Associate
- Joined
- 29 Jul 2005
- Posts
- 230
- Location
- London / Nottingham
I am redesigning my site so that it works with browsers other than IE but I am stuck: This is what i have so far: www.stanislavberemski.com/newfolder/index2.htm
The box shows up fine on IE but on Opera it sticks out of the bottom. How can I make containter div adjust its size along with the sidebar div?
Here is the code:
The box shows up fine on IE but on Opera it sticks out of the bottom. How can I make containter div adjust its size along with the sidebar div?
Here is the code:
Code:
CSS FILE
body { text-align: center;
background-color:#000000; }
#container {
text-align: left;
margin: 0 auto;
width: 770px;
background-image:url(back.jpg);
border: 1px solid #858585;
height:auto;
}
#header {
border: 1px solid black;
margin: 20px;
padding: 20px;
}
#content {
margin-left:350px;
margin-right: 10px;
border: 1px solid #858585;
padding: 20px;
}
#footer {
margin: 20px 20px 0 20px;
padding: 20px;
border: 1px solid black;
clear: left;
}
#sidebar {
border: 1px solid #858585;
width: 330px;
margin-left: 10px;
float: left;
display: inline;
height:auto;
}
#item {
width:320px;
border: 1px solid #858585;
margin-left:4px;
margin-top:4px;
margin-bottom:4px;
background:#3C3C3C;
}
.title {
font-family:Arial, Helvetica, sans-serif;
color:#C7C7C7;
font-size:36px;
margin-top:10px;
margin-left:10px;
}
.itemtitle {
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:12px;
margin-top:2px;
margin-left:2px;
text-transform:capitalize;
}
.itemdate {
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:10px;
text-transform:capitalize;
font-style:italic;
margin-left:0px;
margin-top:0px;
}
.itemtext {
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:11px;
margin-left:0px;
margin-top:0px;
}
Code:
HTML Code
<body>
<div id="container">
<h1 class="title">Stanislav Beremski</h1>
<div id="sidebar">
<div id="item">
<h2 class="itemtitle">Random Testing</h2>
<p class="itemdate">10.01.1983</p>
<p>This is some random text that I am using as test. Blah.This is some random text that I am using as test. Blah.This is some random text that I am using as test. Blah.This is some random text that I am using as test. Blah.</p>
</div>
</div>
<div id="content">
<p class="itemtext">This is some r.</p>
</div>
</div>
</body>