3 replies [Last post]
blakems
blakems's picture
Offline
Enthusiast
UTah, USA
Last seen: 16 years 28 weeks ago
UTah, USA
Timezone: GMT-7
Joined: 2003-04-07
Posts: 60
Points: 0

I am building a site and in IE and their is child div that I use to position some stuff. There is another div I don't want to be positioned inside the parent. Is there a way to tell the selector to not use the parent div to position it.

-bMs-
http//www.blakems.com !important;

Anonymous
Anonymous's picture
Guru

I don't want to use the parent selctor...

When you say parent in your example, are you referring to the body of the document?

If so, just create one more level and place whatever you want to outside, outside of that parent. Like so:

Current:

<div id="child-to-body">
</div>

New:

<div id="something-goes-outside"></div>

<div="parent">
<div id="child-to-parent">
</div>
</div>

Let me know if I understood correctly.

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 3 years 37 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

I don't want to use the parent selctor...

Hmm, we could do with an example to try to show what you're after...

Sounds like absolute positioning could be the answer, but I'm not too sure

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

blakems
blakems's picture
Offline
Enthusiast
UTah, USA
Last seen: 16 years 28 weeks ago
UTah, USA
Timezone: GMT-7
Joined: 2003-04-07
Posts: 60
Points: 0

I don't want to use the parent selctor...

I went with absolute positioning and that worked fine, i couldn't move the div outside of the parent.

-bMs-
http//www.blakems.com !important;