What"s with it anyway? Div inside a div
What"s with it anyway? Div inside a div
am 13.08.2007 17:17:29 von greenflame
ok, so here's the deal.
I have a div, which is adjusted to 100% width and 100% height.
I have another div inside (which is relative to it)
Problem is that the outer div is adjusting to the height and width of
the inner div. It's driving me mad.
I tried to play with z-index, with overflow:hidden... nothing. maybe
you can help me.
(using windows xp, internet explorer if it matters)
Here's the code:
Ardeo Design Studios
aaaa aaaa aaaa baba baba baba caca caca caca dada dada dada eaea eaea
eaea fafa fafa fafa gaga gaga gaga haha haha haha iaia iaia iaia jaja
jaja jaja kaka kaka kaka lala lala lala mama mama mama nana nana nana
oaoa oaoa oaoa papa papa papa qaqa qaqa qaqa rara rara rara sasa sasa
sasa tata tata tata uaua uaua uaua uaua vava vava vava wawa wawa wawa
xaxa xaxa xaxa yaya yaya yaya zaza zaza zaza sometext sometext
sometext sometext
Re: What"s with it anyway? Div inside a div
am 13.08.2007 18:23:09 von Matt White
On Aug 13, 9:17 am, greenflame wrote:
> ok, so here's the deal.
> I have a div, which is adjusted to 100% width and 100% height.
> I have another div inside (which is relative to it)
> Problem is that the outer div is adjusting to the height and width of
> the inner div. It's driving me mad.
> I tried to play with z-index, with overflow:hidden... nothing. maybe
> you can help me.
>
> (using windows xp, internet explorer if it matters)
> Here's the code:
>
>
>
>
>
> Ardeo Design Studios
>
>
>
>
>
>
>
> aaaa aaaa aaaa baba baba baba caca caca caca dada dada dada eaea eaea
> eaea fafa fafa fafa gaga gaga gaga haha haha haha iaia iaia iaia jaja
> jaja jaja kaka kaka kaka lala lala lala mama mama mama nana nana nana
> oaoa oaoa oaoa papa papa papa qaqa qaqa qaqa rara rara rara sasa sasa
> sasa tata tata tata uaua uaua uaua uaua vava vava vava wawa wawa wawa
> xaxa xaxa xaxa yaya yaya yaya zaza zaza zaza sometext sometext
> sometext sometext
>
>
>
>
>
Try reversing the position attribute on bgwords and container, so that
bgwords is absolute and container is relative. Is that what you want?
Re: What"s with it anyway? Div inside a div
am 13.08.2007 23:25:08 von dorayme
In article
<1187018249.672670.271260@d55g2000hsg.googlegroups.com>,
greenflame wrote:
> I have another div inside (which is relative to it)
> Problem is that the outer div is adjusting to the height and width of
> the inner div. It's driving me mad.
Your code is not formally correct, you give little clue about
what you are trying to achieve (there is mainly text on the
browser window and that is that). Why do you think you need
absolute positioning?
--
dorayme
Re: What"s with it anyway? Div inside a div
am 14.08.2007 00:39:35 von rf
"dorayme" wrote in message
news:doraymeRidThis-C3BBD1.07250814082007@news-vip.optusnet. com.au...
> Why do you think you need
> absolute positioning?
So the text can flow outside the box when you increase your font size, of
course :-)
--
Richard.
Re: What"s with it anyway? Div inside a div
am 14.08.2007 01:46:47 von dorayme
In article ,
"rf" wrote:
> "dorayme" wrote in message
> news:doraymeRidThis-C3BBD1.07250814082007@news-vip.optusnet. com.au...
>
> > Why do you think you need
> > absolute positioning?
>
> So the text can flow outside the box when you increase your font size, of
> course :-)
Why didn't I think of that?<.../>
--
dorayme