Switch to full style
HTML code examples
Post a reply

Change the body tag background in html

Fri Dec 16, 2011 12:01 am

background properties changing at body tag using css
Code:
<html>
<
head>
<
title>change the body background specifications </title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
style rel="stylesheet" type="text/css">

body {
  background: #000000 url(back.jpg) repeat-y top center;
  font: 100% "Trebuchet MS";
  line-height: 2.0em;
  color: #FFFFFF;
  
}
</
style>
</
head>
<
body>
    <p> You can see that background color is changed,also you notice the background <br/>
image is repeated vertical in the center    </p>

</
body>
</
html>
 




Post a reply
  Related Posts  to : Change the body tag background in html
 Add background to body     -  
 change the font style of the body tag     -  
 change background of the paragraph     -  
 change background color with RGB     -  
 Change background position when mouse over     -  
 Automatic change to webpage background image     -  
 how to change the alignment text in html     -  
 Change and get html content of element     -  
 hi every body . . .     -  
 CSS body example     -  

Topic Tags

HTML Body