YOU MAKE IT. WE MAKE IT WORK.
Floats
Floats are basically the same as the align attribute. They are super easy to use!
CSS Code
#left {
float: left;
}
#right {
float: right;
}
XHTML Code
<div id=”left”>This text will appear on the left hand side of the page.</div>
<div id=”right”>This text will appear on the right hand side of the page.</div>
CSS Explanation
- #left – # is the symbol used to name an ID. Left is the name of the ID.
- float: left; – Basically says which way the content will move or float. In this case left.
XHTML Explanation
- <div id=”left”> – Telling the div what id it will use.
- </div> – End tag for the div.
| Print article | This entry was posted by Kyle on July 18, 2007 at 12:59 am, and is filed under CSS, Coding, XHTML. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

