1 Working with the <div> tag! [Part 1] Mon Jun 28, 2010 7:29 pm
latchy
Registered Member
Working with DIV's
By, Latchy
Hi everyone Today I'm going to be talking about the div tag.
Di's can be very useful when you have a large amout of date you need to process and style quick.
OK, so lets start of with a basic DIV:
- Code:
<div>Hello my name is Rob</div>
So there is nothing intresting about it is there, and it would become a pain to style as it has not got a class or an ID. So lets take a look at a div with a class
- Code:
<div class"hello">This is some text in a div element</div>
This version will be easy to style as it has got a class, with this version the posibbilitys are endless, you can apply background images, padding, CSS3 and a can be used as a trigger in jQuery.
There are many more thing to explain about div's and I will cover them in the future parts of this tutorial series.
Thank you for your time,
Rob