having created my first div layout template......
Posted: Mon Aug 04, 2008 11:30 am
in dreamweaver, i have taken the code from dreamweaver and pasted in as a new template.
it is showing now here My 1st created divs
now at the moment the different div's styling is also in the template shown here
i now wanted to remove the styling from the template and put these details in a stylesheet and link the template to it. However it doesnt seem to work when i do this.
here is the css stylesheet i have created to go with them template
but now im stuck, i thought all i had to do was make the template like this
it is showing now here My 1st created divs
now at the moment the different div's styling is also in the template shown here
test div site
i now wanted to remove the styling from the template and put these details in a stylesheet and link the template to it. However it doesnt seem to work when i do this.
here is the css stylesheet i have created to go with them template
/*****************
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;
}
div#master {
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
position: relative;
width: 990px;
left: 0px;
top: 0px;
}
div#content {
style="position:absolute;
left:54px;
top:188px;
width:728px;
height:454px;
z-index:2;
background-color: #FFFF00;
layer-background-color: #FFFF00;
border: 1px none #000000;
visibility: visible;
}
div#Layer1 {
style="position:absolute;
width:174px;
height:438px;
z-index:1;
background-color: #339999;
layer-background-color: #339999;
border: 1px none #000000;
}
div#header {
style="position:absolute;
left:52px;
top:14px;
width:729px;
height:142px;
z-index:3;
background-color: #FF0000;
layer-background-color: #FF0000;
border: 1px none #000000;
visibility: visible;
}
div#sponsor {
style="position:absolute;
left:790px;
top:14px;
width:140px;
height:627px;
z-index:4;
background-color: #666666;
layer-background-color: #666666;
border: 1px none #000000;
visibility: visible;
}
div#Breadcrumbs {
style="position:absolute;
left:52px;
top:161px;
width:730px;
height:20px;
z-index:5;
background-color: #999999;
layer-background-color: #999999;
border: 1px none #000000;
visibility: visible;
}
/* END TEXT */
but now im stuck, i thought all i had to do was make the template like this
but when i do that and create the stylesheet it doesnt work!!!! any advice??
test div site