Div Alignment Issue <solved>
Posted: Tue Sep 23, 2008 12:35 pm
Hey guys
ive been teaching myself slowly the proper form of creating sites made of divs from scratch.
Here is a test page im using: Test page
the red and blue divs should be side by side but one is pushing the other one down, how can i fix this?
heres the coding
Stylesheet
you can view the source code in the view finder on the test page.
Any advice welcome
ive been teaching myself slowly the proper form of creating sites made of divs from scratch.
Here is a test page im using: Test page
the red and blue divs should be side by side but one is pushing the other one down, how can i fix this?
heres the coding
Stylesheet
/*
Theme Name:
Theme URI: http://www.
Description:
Author:
Author URI: http://www.
This theme was designed and built by
*/
/* =General
-----------------------------------------------------------------------------*/
/*****************
browsers interpret margin and padding a little differently,
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}
body
{background: url(/uploads/images/background.jpg) repeat-x top center;
color: #333;
margin:0em; /* gives some air for the pagewrapper */
background-color: #000;
}
#master {
margin-left:auto;
margin-right: auto;
top:0px;
width:800px;
background-color:#FFFF00;
height:900px;
z-index:1;
}
#header {
margin-left:auto;
margin-right: auto;
left:147px;
top:0px;
width:800px;
background-color:#FF0000;
height:50px;
z-index:2;
text-align: center; align="center">
}
#image {
margin-left:10px;
margin-right: auto;
top:68px;
width:200px;
background-color:#0033CC;
height:208px;
z-index:3;
background-image: url(../images/img1.png); layer-background-image: url(../images/img1.png); border: 1px none #000000;
}
#over {
margin-left:380px;
margin-right: auto;
top:68px;
width:300x;
height:208px;
z-index:4;
background-image: url(../images/img2.png);
layer-background-image: url(../images/img2.png); border: 1px none #000000;
background-color:#00FF33;
}
you can view the source code in the view finder on the test page.
Any advice welcome