20/12/2012

Div Tags

Div tags are brilliant. without them, my blog would be messy and would not be positioned correctly. there are two main types that i use.

lets try positioning something - this code would position some text at 500px from the left, and 20px from the top of the page, and it would be 400px wide.


now, you can use css to do this much more easily. say i used this bit of css:
#text{ position: absolute; top: 20px; left: 500px; width: 400px;}

now i can use a much simpler code to do the same job as the above one:


see how simple it can be? combining css and html like this can make for some really cool tricks, and it can all come in really handy when designing your website or blog!

No comments: