neronikita
Technical User
I'm hoping someone else sees something here that I'm missing.... I can't seem to get the right hand side bar (adbar) to move up and align with the left sidebar and main content. I'm including the CSS sheet to see if anyone sees a problem in that before I include the HTML.
What I want to see is:
Sidebar MainContent Adbar
but what I'm seeing is
Sidebar MainContent
adbar
Thanks in advance for any suggestions. I'm just learning CSS so any help will be greatly appreciated.
Di
body {
font-family: arial;
}
#container {
width: 60%;
margin: 0 auto;
padding: 0;
text-align: left;
}
#header {
text-align:center;
margin: 0;
padding: 0;
}
#header p {
Text-align: center;
color: #800000;
font-size: 18px;
font-family: arial;
font-weight: bold;
}
#sidebar {
float: left;
width: 12em;
}
#mainContent {
background-color: #dddddd;
margin-right: 20em;
margin-left: 12em;
font-family: Arial;
}
#mainContent p {
text-align: center;
}
#mainContent em {
font-style: italic;
font-weight: bold;
}
#mainContent h1, h2 {
text-align: center;
}
#adbar {
float: right;
width: 12em;
font-size: .8em;
}
#adbar div {
text-align: right;
margin: 0 auto;
}
#adbar p {
font-family: arial;
}
.clearfloat {
clear: both;
height: 0;
font-size:1px;
}
#footer p {
margin: 0;
padding: 10px 0;
background-color: #DDDDDD;
text-align: center;
font-size: .8em;
}
What I want to see is:
Sidebar MainContent Adbar
but what I'm seeing is
Sidebar MainContent
adbar
Thanks in advance for any suggestions. I'm just learning CSS so any help will be greatly appreciated.
Di
body {
font-family: arial;
}
#container {
width: 60%;
margin: 0 auto;
padding: 0;
text-align: left;
}
#header {
text-align:center;
margin: 0;
padding: 0;
}
#header p {
Text-align: center;
color: #800000;
font-size: 18px;
font-family: arial;
font-weight: bold;
}
#sidebar {
float: left;
width: 12em;
}
#mainContent {
background-color: #dddddd;
margin-right: 20em;
margin-left: 12em;
font-family: Arial;
}
#mainContent p {
text-align: center;
}
#mainContent em {
font-style: italic;
font-weight: bold;
}
#mainContent h1, h2 {
text-align: center;
}
#adbar {
float: right;
width: 12em;
font-size: .8em;
}
#adbar div {
text-align: right;
margin: 0 auto;
}
#adbar p {
font-family: arial;
}
.clearfloat {
clear: both;
height: 0;
font-size:1px;
}
#footer p {
margin: 0;
padding: 10px 0;
background-color: #DDDDDD;
text-align: center;
font-size: .8em;
}