Click to See Complete Forum and Search --> : absolute layers in css


sjemp
01-14-2004, 05:33 AM
If i want to use css and i have this code in html:
<div id="Layer9" class="Layer9" style="position: absolute; left: 211; top: 135; width: 433; height: 514; z-index: 6; visibility: visible">
how do you write this in your stylesheet?
I tried this:
.Layer9 {position: absolute; left: 211; top: 135; width: 433; height: 514; z-index: 6; visibility: visible }
but somehow it doesn't work

DaveSW
01-14-2004, 05:44 AM
Couple of points:

1) if layer9 is only used once then use id. if it's used lots of times then use class. you may be confusing the pc by putting id and class.

2) Units for your distances and widths.

<div id="Layer9">

stylesheet:

#layer9 {
position: absolute;
left: 211px;
top: 135px;
width: 433px;
height: 514px;
z-index: 6;
visibility: visible;
}

Alternatively (if layer9 is used more than once)

<div class="Layer9">

stylesheet:

.layer9 {
position: absolute;
left: 211px;
top: 135px;
width: 433px;
height: 514px;
z-index: 6;
visibility: visible;
}

Does that help?

sjemp
01-14-2004, 06:48 AM
yep,

ffs i forgot those px's

Thx m8

DaveSW
01-14-2004, 12:01 PM
no probs - <joke>you can send me some of those famous Belgian Chocolates as payment!</joke> :D LOL