Hey there!
I'm bored, so I've decided to create a guide about the DIV and CSS basics.
Hope this helps some of you guys!
Meti
-----------------------------------------------------------------
Basic DIV and CSS:
A basic DIV code will look like this:
And a basic CSS code will look like this:HTML Code:<div id="CSSNAME"></div>
-----------------------------------------------------------------HTML Code:#CSSNAME { }
Some basic CSS codes:
margin:- Basicly marginals between the spaces.
The margin codes could look like this:
Margin: auto; centers the layout/image/divHTML Code:margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; margin: auto;
But you could add:
To the body tag, and then it will be easier for you to do the full screen sizesHTML Code:margin: 0px;
Padding:- Positioning the text
Could look like this:
background-image: url(folder/picture.png); - This is the background of the image.HTML Code:padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px;
width: 0px;- This is the width of the image/div
height: 0px;- This is the height of the image/div
float:- Makes your image/div float
Could look like this:
I personally never use float:right;HTML Code:float: left; float: right;
color:- Change the font color
Could look like this:
- makes your text whiteHTML Code:color: #FFFFFF;
-----------------------------------------------------------------
I guess that's all I can get in my head atm
Please tell me if there are some thing I've forgotten.
You are not allowed to post this on other forums without permission from Meti Mulaj. Copyright © Meti Mulaj 2008+







Reply With Quote







