need to pre-fill a div with a fixed size spacer, what's the bestway?

D

dorayme

Ben C said:
This demonstrates that "shrink"-to-fit ends up being stretch-to-fit if
the content's minimum width is wider than the available width.

Occasionally people want the banner at the top of a page or something to
be as wide as the content and not just only as wide as the viewport. You
can do that by floating BODY left.

Interesting...

http://dorayme.890m.com/alt/bodyFloat.html

gets the border to behave intuitively right on scrolling (unlike the
lower div in the first URL above).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top