r0k3t
04-10-2008, 02:33 PM
Hi there,
I am having serious trouble today... I have done variations of this theme several times but I can't seem to figure out what the problem is. I need to get the two divs with the dashed borders to go inside the div with the green solid border... For the life of me I can't get it right, err - I hate these days...
The code is below - I has to be something simple... If you can point out my error I would appreciate the help. OH! I am testing on firefox.
Thanks!
<html>
<head>
<title>Testing stuff</title>
</head>
<body>
<div style="border: solid 2px green; width: 700px; height; 100px">
<div style="height: auto; width: 400px; float: left; border: dashed 1px red; display: inline;">
XXX
</div>
<div style="height: auto; width: 200px; border: dashed 1px gray; float: left; display: inline;">
XXX
</div>
</div>
</body>
</html>
I am having serious trouble today... I have done variations of this theme several times but I can't seem to figure out what the problem is. I need to get the two divs with the dashed borders to go inside the div with the green solid border... For the life of me I can't get it right, err - I hate these days...
The code is below - I has to be something simple... If you can point out my error I would appreciate the help. OH! I am testing on firefox.
Thanks!
<html>
<head>
<title>Testing stuff</title>
</head>
<body>
<div style="border: solid 2px green; width: 700px; height; 100px">
<div style="height: auto; width: 400px; float: left; border: dashed 1px red; display: inline;">
XXX
</div>
<div style="height: auto; width: 200px; border: dashed 1px gray; float: left; display: inline;">
XXX
</div>
</div>
</body>
</html>