logo Home Color Chart Chat HTML Editor E mail Google
HTML
  Body
  Tables
  Marquee
  Lists
  Links
  Video
  Audio
  Text
  Forms
  Frames
  Buttons
CSS
  Body
  Tables
  Divs
  Links
  Video
  Float
  Text
  Navigation
  DropDown
  Buttons
chinito

CSS Float



Div Id: test Click

<DOCTYPE html>
<html>

<head>

<style>

div.test {
                   float: right;
                   background-color: gold;
                   width: 110px;
                   border: 5px solid red;
                   padding: 0px;
}

</style>

</head>

<body>

<div class="test">

<img src="http://partyhtml.com/image/chinito.jpg" height="176px" width="110px" alt="chinito">

</div>


</body>

</html>

Tip : One method for aligning elements is to use float: center;

For more references
Click Here