How to set a dynamic width on a floating div?
Posted
by user330144
on Stack Overflow
See other posts from Stack Overflow
or by user330144
Published on 2010-04-30T23:08:55Z
Indexed on
2010/04/30
23:17 UTC
Read the original article
Hit count: 148
I have a div container with 3 div elements inside (A, B, and C). I'll know the width of the container and the width of A and B) the problem is that in some cases B won't be there in which case I need C to expand to fill the rest of the container. How would I do this with straight css or am I going to need to use javascript to calculate the width?
Thanks.
© Stack Overflow or respective owner