exact position in a div tag | andi setiawan's blog

Maybe you ever wonder how to put a content like text or picture with exact position in a html page. Now i will explain it shortly.

I don’t understand css too much, so i will explain how tu put content in an exact position by modifying inline div tag.

Here is an example:

<div style=”top: 50px; left: 60px;”>

<!– content goes here –>


It will put your content 50pixels from top of the page, and 60pixels from left of the html page.

well, thats it.. 🙂

Posted in programming, Tips n Trik |

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: