DIVS
this div gives the text a border.
dis is the code for that:
If you would like to add scroll bars to the div, add a height, and width to the div which will be smaller than the amount of writing u will have. if you make them bigger, then the scroll bars wont show. For example:
aight...
Here Goes
a Div Wit
Scroll bars
Do u
Like it?
I
HOPE
SO!
the code for that is:
Now, the thing about divs is that you can modify them in many ways by adding things into the style part of a div. just make sure that each style is seperated by a semi colon ( ; ) and each style selection is sepetated by a colon. ( : ) For example; lets say that you wanted the text to be aligned in the center. And you wanted the div to be 150px x 150px in size with a white border 2px wide and solid. They would be written out like this:
font-face:Comic Sans Ms;text-align:center;width:150px;height:150px;border:white 2px solid
Now, after you insert in into the div style code, it should look something like this:
Which would end Up Looking like this:
then u would insert your text as well as html that you want to show up in the div in here. U can add pictures and text and whatever else you could possibly add. But I dont think there is anything else but pictures and text u can add.. but who knows!?! be creative....
If you have a layout that's covering your whole page and need to know how to position a div over it, check out the positioning section.