6 replies [Last post]
Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

Does anybody know why the following doesn't render in Netscape 7?

<div style='position:absolute; left:50px; top:50px;'>
	<span style='position:relative; left:0px; top:0px;'>
		<span style='position:absolute; left:0px; top:0px;'>
			THIS IS A TEST PHRASE
		</span>
	</span>
</div>

I mean nothing. It renders just the way I'd expect it to in IE 5. Have I just been messing up my brain with IE for too long? Am I missing something blatantly obvious?

DJSdotcom
Offline
Enthusiast
Rochester, NY / Chicago, IL
Last seen: 20 years 1 week ago
Rochester, NY / Chicago, IL
Joined: 2003-03-23
Posts: 95
Points: 0

Very simple positioning problem

Why in the world are you using absolutely positioning, within relative positioning, within absolute positioning??

I'm sure there's a simpler way to write out one line of text to the screen Wink

-Mike

</twocents>

Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

Very simple positioning problem

Of course, of course Shock

It's more complicated in the real world, you see. I just pulled out the essence of what I'm working with to try to boil it down to what was making it break... and I found it.

Daniel
Daniel's picture
Offline
Enthusiast
Last seen: 20 weeks 1 day ago
Timezone: GMT+10
Joined: 2003-03-12
Posts: 76
Points: 0

Very simple positioning problem

Did you want to post your solution? Might be helpful to someone else.

Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

Very simple positioning problem

Oh, I'm sorry. I mean I found what was breaking it... I still haven't figured how to make it work

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 3 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

position

Hi Duke,
Try changing the position of the first span from relative to static.

Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

Very simple positioning problem

Sweeet. Thanks!