Force DIVs to NOT wrap if they don't fit browser width?

T

Toby Inkster

Noozer said:
I've tried several times. The answers I've recieved here before state that
it wasn't possible.

There are several ways...

1. display:table-cell
2. display:inline-block
3. relative positioning
4. absolute positioning
....
 
N

Noozer

I've tried several times. The answers I've recieved here before state
that

That does what I'm looking for... so now I know that I'm just doing
something stupid. Going to figure out what I'm doing wrong no matter how
long it takes.

I've found the difference between this and mine. The container is a known
width. My container could be 15em or 60em.

I'm going to try to dynamically style the container to the correct width,
based on what it contains. If this doesn't work I'll just add a transparent
container with a width of 1000px to hold the complete page.

Thx!
 
N

Noozer

I'm going to try to dynamically style the container to the correct width,
based on what it contains.

This works... ASP finds the maximum # of catagories in a group and then I
multiply the containers width by this number and use Javascript to apply the
new width to the group style in the BODY OnLoad event.

Works OK in IE. Firefox doesn't seem to like fractional EM units and rounds
up (could be wrong - might be padding/margi differences) so it comes close.

Definately not the best way to do this, but works better than resorting to
tables.
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top