PROGRAMMING COURSES ADMIN VIDEO TUTORIALS COMMUNITY RESOURCES |
There may be an occasion where you would like a page element or some
content to be independently positioned from all of the other content on
the HTML page. In the example below I show you how to place a DIV tag
with an image inside of it in the top left corner of a page. This method
places CSS style attributes in the HTML tag to position it.
![]() <div
style="position:absolute;top:0px;left:0px;padding:0px;margin:0px;">
<img src="images/somePicture.jpg" border="0" /> </div> You can change the number values to place it exactly where you need it. "left" can become "right", "top" can become "bottom", and so on. Negative numeric values work. Strategic placement is sometimes the only way to get the design you want on a web page that is HTML based. That concludes this section, to continue learning CSS head back to the index
|
|||||||||||
|
|
DevelopPHP Requires Flash Player
___________________________________________
|
||||||||