I tried the position:normal but it doesn't listen when I define the top and left elements. I read the article and realized I don't think I'm going to be able to do what I want the way I have in the past.
Quote:
|
Originally Posted by ronaldb66
Better take the helm yourself and steer clear of DW's "table-cells-replaced-by-abs-pos'd-divs" layout nightmares; learn how to apply CSS positioning to create layouts yourself.
|
I do absolutely position certain elements of my layouts - I figure mostly because I'm a control freak. But not often as a replacement for table cells. Except in this case that's what I'm doing. I didn't include the code earlier because it's a nightmare reagardless of any positioning.
Code:
<body>
<div id="divControl">
<div class="11"><a href="#" onclick="changeActive(0)">
<IMG src="ab-caught.jpg" width="50" height="50" BORDER=0></A></div>
<div class="12"><a href="#" onclick="changeActive(21)">
<IMG src="a-blue.jpg" width="50" height="50" BORDER=0></A></div>
</div>
<div id="ab-caught" class="pic">
<IMG src="ab-caught.jpg" width="225" height="305"></div>
<div id="a-blue" class="pic">
<IMG src="a-blue.jpg" width="225" height="307"></div>
</body>
Code:
.pic {position:absolute; top:25px; left:5px; width:225px; visibility: hidden}
.11 {position:absolute; top:10px; left:260px}
.12 {position:absolute; top:10px; left:330px}
Then the javascript I didn't include uses the small images as a menu to change the layer of the class="pic" images.
Are there other CSS positioning could I use to achieve the same effect?