[RESOLVED] Prevent div wrapping without fixed width
How can I prevent divs wrapping inside a div container which doesn't have a fixed width?
I have a parent div container which width set to 100%.
Inside it there are two child divs, both floated to the right.
The first div has a fixed width, but the second is supposed to fill the remaining space of the parent div, without wrapping.
Is that possible?
Hi there bumpy,
and a warm welcome to these forums.
Try it like this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="/">
<div id="first-child">first child</div>
<div id="second-child">second child</div>
I haven't even considered not floating the second div...
Thank you very much for the answer and the quick response!
No problem, you're very welcome.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread