Switch to full style
HTML code examples
Post a reply

set margin to body tag

Thu Dec 15, 2011 11:31 pm

set margin to body tag using CSS specification
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>set margin to body</title>
<
style type="text/css">
body {
 margin-left: 50%;
 margin-right: 15%;
}
</
style>
</
head>
<
body>
<
big>
<
big>
<
p>You may notice that there are margin in two 
sides left and right
... </p>
</
big>
</
big>
</
body>
</
html>
 




Post a reply
  Related Posts  to : set margin to body tag
 Change the margin and padding of paragraph     -  
 CSS body example     -  
 hi every body . . .     -  
 Add background to body     -  
 change the font style of the body tag     -  
 Change the body tag background in html     -  
 using double font families with body tag     -  
 preserve the white space with-in the body tag     -  
 middle sited body page     -  
 overriding the direction of text within body content     -  

Topic Tags

HTML Body