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

arronmattwills

Well-known member
Registered
Joined
Dec 23, 2013
Messages
191
Points
18
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

Well-known member
Joined
Jul 5, 2012
Messages
120
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

Member
Registered
Joined
Nov 1, 2013
Messages
29
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

Member
Registered
Joined
Jan 27, 2014
Messages
30
Points
0
I like to use the wildcard. default everything. then change only what you need.

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

Jack London

Well-known member
Joined
Jul 9, 2012
Messages
158
Points
18
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

Well-known member
Registered
Joined
Aug 29, 2013
Messages
111
Points
18
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
Registered
Joined
Dec 2, 2013
Messages
4
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
4,910
Replies
2
Views
3,291
Replies
5
Views
3,428
Replies
1
Views
2,987
Newer Threads
Replies
0
Views
5,141
Replies
4
Views
3,216
Replies
32
Views
10,516
Latest Threads
Replies
1
Views
48
Replies
0
Views
39
Replies
0
Views
59

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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