sjefjans
09-29-2003, 11:30 AM
Hallo there,
I created a layer with Dreamweaver. It looks like:
<div id="pLayer" style="position:absolute; width:400px; height:15px; z-index:1; background-color:#E52324; layer-background-color:#E52324; color:white; border: 1px none #000000; left: 10px; top: 120px">tada</div>
Styles are set inside the div tag. Is it possible to put them in a linked stylesheet? Something like:
.pLayer
{
position:absolute;
width:400px;
height:15px;
z-index:1;
background-color:#E52324;
layer-background-color:#E52324;
color:white;
border: 1px none #000000;
}
And do the positioning attributes (left and top) stay inside the div tag, or can they also be moved to the stylesheet?
Thanks!
Sjef
I created a layer with Dreamweaver. It looks like:
<div id="pLayer" style="position:absolute; width:400px; height:15px; z-index:1; background-color:#E52324; layer-background-color:#E52324; color:white; border: 1px none #000000; left: 10px; top: 120px">tada</div>
Styles are set inside the div tag. Is it possible to put them in a linked stylesheet? Something like:
.pLayer
{
position:absolute;
width:400px;
height:15px;
z-index:1;
background-color:#E52324;
layer-background-color:#E52324;
color:white;
border: 1px none #000000;
}
And do the positioning attributes (left and top) stay inside the div tag, or can they also be moved to the stylesheet?
Thanks!
Sjef