Topic: Don't know how to position these ;( Pages that link to <a href="https://ozoneasylum.com/backlink?for=10670" title="Pages that link to Topic: Don&amp;#039;t know how to position these ;(" rel="nofollow" >Topic: Don&#039;t know how to position these ;(\

 
Author Thread
Schitzoboy
Paranoid (IV) Inmate

From: Yes
Insane since: Feb 2001

IP logged posted posted 02-05-2002 03:30 Edit Quote

Ok here is my code:

code:
<div style="width:290px; height:118px; border: solid 1px black; padding: 0;">
<span style="position: absolute; background: #FF0000; margin: 0; top: 0; left: 0; width: 37; height: 74;">1</span>
<span style="position: absolute; background: #00FF00; margin: 0; top: 74; left: 0; width: 37; height: 43;">2</span>
<span style="position: absolute; background: #0000FF; margin: 0; top: 0; left: 37; width: 212; height: 118;">3</span>
<span style="position: absolute; background: #FF00FF; margin: 0; top: 0; left: 249; width: 41; height: 35;">4</span>
<span style="position: absolute; background: #FFFF00; margin: 0; top: 35; left: 249; width: 41; height: 83;">5</span>
</div>



The spans's will have images in them later but for now I'm just laying it out. Everything fits perfectly! It's beatuiful! It's wonderful! It's also at the very very top left corner of the page! That's not what I wanted. I wanted it to be at the top left corner of the div that hold's everything but the absolute positioning completely ignores the div. I *THOUGHT* that absoulte and fixed were the same except that fixed would keep the spans in the div. I was wright but when I switch to fixed nothing is lined up all neat and pretty, in fact its os haphazard that I don't know what they're aligning to at all. How can I get this to work?

Schitzo

Schitzoboy
Paranoid (IV) Inmate

From: Yes
Insane since: Feb 2001

IP logged posted posted 02-05-2002 04:49 Edit Quote

w00t! Never mind! figured it out on my own! (gotta love that feeling) I just had to make the outer div absolutely positioned as well and then set its position and the rest followed nicely! YAY!



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu