How to format the body tag in CSS while designing a website?

arronmattwills

New member
Joined
Dec 23, 2013
Messages
322
Points
0
We have to format or initialize all the values before writing a css code to design a website.

the following things are we need to do:

Margin should be zero.
padding should be zero.
font size should be twelve pixels.
and font family should be a regular font like arial.

These things are very important for professional web UI designers.
 
Last edited:

webdesign

New member
Joined
Jul 5, 2012
Messages
232
Points
0
the following things are we need to do:

Margin should be zero.
padding should be zero.
font size should be twelve pixels.
and font family should be a regular font like arial.
.
In css file you put this code for body css
Code:
body{
margin:0px;
padding:0px;
font-size:12px;
font-family: Arial, sans-serif;
}
This code above means that you will reset all margin and padding to 0px and applying font size and font family are 12px and Arial.
 

sarataylor

New member
Joined
Nov 1, 2013
Messages
72
Points
0
Download reset.css file from the internet and you will find your answer in it. Above comments are useful and full of information
 

arossi

New member
Joined
Jan 27, 2014
Messages
40
Points
0
I like to use the wildcard. default everything. then change only what you need.

* {
margin: 0px;
padding: 0px;
}
 

Jack London

New member
Joined
Jul 9, 2012
Messages
386
Points
0
I agree with arossi, using above code (the wildcard) to reset all elements on your web design with padding and margin are 0px, it's useful to start a new design and used to put on top of css file.
 

JoeHamilton

New member
Joined
Aug 29, 2013
Messages
207
Points
0
My spouse and i believe arossi, applying previously mentioned rule (the wildcard) to be able to reset to zero all things in your website design together with support in addition to perimeter are usually 0px, it really is useful to find a brand-new design and style in addition to utilized to set along with css file.
 

linkinpa

New member
Joined
Dec 2, 2013
Messages
9
Points
0
body{
margin:0px;
padding:0px;
font-size:12px;
font-family: Arial, sans-serif;
}
Thank for your sharing :) :thumb:
 
Older threads
Replies
4
Views
7,382
Replies
15
Views
5,685
Replies
6
Views
3,406
Replies
0
Views
1,684
Newer threads
Latest threads
Replies
1
Views
103
Replies
0
Views
115
Replies
0
Views
167
Replies
5
Views
416
Recommended threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top