Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>float test 2</title>
<style type="text/css">
div.a {
width: 100px;
height: 100px;
background-color: blue;
float: left;
}
div.b {
/* width: 100px; */
/* height: 100px; */
background-color: red;
}
</style>
</head>
<body>
<div class="a">Some text in here</div>
<div class="b">Some more text in here</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>float test 5</title>
<style type="text/css">
div.a {
width: 100px;
height: 100px;
background-color: blue;
float: left;
}
div.b {
width: 100px;
height: 100px;
background-color: red;
}
</style>
</head>
<body>
<div class="a">Some text in here</div>
<div class="b">Some more text in here</div>
</body>
</html>