{Guide} DIVs and CSS basics!
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:
HTML Code:
<div id="CSSNAME"></div>
And a basic CSS code will look like this:
-----------------------------------------------------------------
Some basic CSS codes:
margin:- Basicly marginals between the spaces.
The margin codes could look like this:
HTML Code:
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin: auto;
Margin: auto; centers the layout/image/div
But you could add:
To the body tag, and then it will be easier for you to do the full screen sizes ;)
Padding:- Positioning the text
Could look like this:
HTML Code:
padding-top: 0px;
padding-left: 0px;
padding-right: 0px;
padding-bottom: 0px;
background-image: url(folder/picture.png); - This is the background of the image.
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:
HTML Code:
float: left;
float: right;
I personally never use float:right;
color:- Change the font color
Could look like this:
HTML Code:
color: #FFFFFF;
- makes your text white
-----------------------------------------------------------------
I guess that's all I can get in my head atm :P
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+