Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / November 2006



Tip: Looking for answers? Try searching our database.

Div with dynamic height and scrolling content

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hans.kindberg@spray.se - 29 Nov 2006 12:39 GMT
I have a page with a content-div that scrolls and has a dynamic height.
I do this with position absolute, top and bottom. I can do this if the
other parts (divs) in the page over the scrolling part has the same
height-unit. To get the top value I add all the other heights together.
E.g. 2em + 1em + 3em = 6em.

Is it possible to accomplish this with parts having different
height-units (one is in %, another is in px and so on)? I know I can
fix this with a table.

Can I use bottom and right on a position-relative element?

The page:
http://www.freewebs.com/hasodaki/ScrollingContent.html (there may be a
publicity banner on top)
Schraalhans Keukenmeester - 29 Nov 2006 12:55 GMT
> I have a page with a content-div that scrolls and has a dynamic height.
> I do this with position absolute, top and bottom. I can do this if the
[quoted text clipped - 5 lines]
> height-units (one is in %, another is in px and so on)? I know I can
> fix this with a table.

How would you add px and em for instance, where px is absolute and em
depending on browser setting and/or text zoom level? Seems contradictory.

Why do you use/want/need absolute positioning?

> Can I use bottom and right on a position-relative element?

I wouldn't know why not. You?

> The page:
> http://www.freewebs.com/hasodaki/ScrollingContent.html (there may be a
> publicity banner on top)

FWIW, I did not see a banner. Does this happen only occasionally? How
does that affect your pixel-perfect layouts?

HTH
Sh.
hans.kindberg@spray.se - 29 Nov 2006 15:28 GMT
Schraalhans Keukenmeester skrev:

> > I have a page with a content-div that scrolls and has a dynamic height.
> > I do this with position absolute, top and bottom. I can do this if the
[quoted text clipped - 10 lines]
>
> Why do you use/want/need absolute positioning?

Do you have an answer or not? Do you know if it's possible? If so -
how?
Why or why not I want to mix px, % or em is not inportant!
Or have you not understood my question?

> > Can I use bottom and right on a position-relative element?
>
> I wouldn't know why not. You?

Have a sample url. As I see it it doesn't work with position-relative.

> > The page:
> > http://www.freewebs.com/hasodaki/ScrollingContent.html (there may be a
> > publicity banner on top)
>
> FWIW, I did not see a banner. Does this happen only occasionally? How
> does that affect your pixel-perfect layouts?

If you didn't see it it's good!

> HTH
> Sh.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.