Friday, May 23, 2014

HTML TUTORIAL PART 49

HTML TUTORIAL PART 49

PROBLEM:
LOOK AT THE FOLLOWING:

Note: When aligning using the float property, always include the !DOCTYPE declaration! If missing, it can produce strange results in IE browsers.

SOLVED:
THE CODE BELOW MADE THE HTML TIP:


<!DOCTYPE html>
<html>
<head>
<style>
body
{
margin:0;
padding:0;
}
.right
{
float:right;
width:300px;
background-color:#b0e0e6;
}
</style>
</head>
<body>
<div class="right">
<p><b>Note: </b>When aligning using the float property, always include the !DOCTYPE declaration! If missing, it can produce strange results in IE browsers.</p>
</div>

</body>
</html>

No comments:

Post a Comment