Handbook Home | Styling Tips | Misc Tips
Code:
The above code snippet demonstrates how we can position a div using CSS to any position on the page right down to the pixel! This type of control was not possible before CSS.
You can also position any HTML element with CSS positioning as you would a Div. You can see below how I positioned a paragraph (<p></p>) in the same way.
Code:
<p style="position:absolute; background:#C5C5C5; left:275px; top:425px; width:390px; height:27px; z-index:1"> A paragraph positioned with CSS. </p>
A paragraph positioned with CSS.