HighDots Forums  

appendChild() and CSS position attributes

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss appendChild() and CSS position attributes in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
i_dvlp@hotmail.com
 
Posts: n/a

Default appendChild() and CSS position attributes - 05-23-2006 , 06:06 PM






What does a child element inherit as far as position, top, left, etc.
?
I'm using DHTML to create child, and append with appendChild()

I actually used "position:absolute" with a parent element.
What should I set to ensure that a child element's position would be
"relative" to the parent.

Is nesting <div> elements legal ?
Are there other ways to implement a container ?
TIA for you input.


Reply With Quote
  #2  
Old   
ironcorona
 
Posts: n/a

Default Re: appendChild() and CSS position attributes - 05-23-2006 , 10:29 PM






i_dvlp (AT) hotmail (DOT) com wrote:

Quote:
I actually used "position:absolute" with a parent element.
What should I set to ensure that a child element's position would be
"relative" to the parent.
position:absolute isn't inherited. But the relationship between the
parent, floated element, and it's children remains relative.

Quote:
Is nesting <div> elements legal ?
Yes of course

http://www.w3.org/TR/html4/struct/global.html#edef-DIV

Quote:
Are there other ways to implement a container ?
Any element with another element inside it could be considered a
container. I don't think that's what you're asking though. The answer
is; yes, loads.

--
Brian O'Connor (ironcorona)


Reply With Quote
  #3  
Old   
ironcorona
 
Posts: n/a

Default Re: appendChild() and CSS position attributes - 05-23-2006 , 10:35 PM



ironcorona wrote:
Quote:
i_dvlp (AT) hotmail (DOT) com wrote:

I actually used "position:absolute" with a parent element.
What should I set to ensure that a child element's position would be
"relative" to the parent.

position:absolute isn't inherited. But the relationship between the
parent, floated element, and it's children remains relative.
Sorry. It is inherited
http://www.w3.org/TR/CSS21/visuren.html#choose-position


--
Brian O'Connor (ironcorona)


Reply With Quote
  #4  
Old   
ironcorona
 
Posts: n/a

Default Re: appendChild() and CSS position attributes - 05-23-2006 , 10:36 PM



ironcorona wrote:

Quote:
position:absolute isn't inherited. But the relationship between the
parent, floated element, and it's children remains relative.
Sorry. It is inherited
http://www.w3.org/TR/CSS21/visuren.html#choose-position


--
Brian O'Connor (ironcorona)


Reply With Quote
  #5  
Old   
Johannes Koch
 
Posts: n/a

Default Re: appendChild() and CSS position attributes - 05-24-2006 , 04:30 AM



ironcorona wrote:

Quote:
ironcorona wrote:

position:absolute isn't inherited. But the relationship between the
parent, floated element, and it's children remains relative.

Sorry. It is inherited
http://www.w3.org/TR/CSS21/visuren.html#choose-position
Inherited: no

I think this means it is not inherited, doesn't it?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.