Switch to full style
HTML code examples
Post a reply

Change the properties of div tag

Fri Jan 06, 2012 11:36 pm

Following example show you an example on how you can change background and others preferences of div tag.
Code:
 
<html>
<
head>
<
title>Change the background of div</title>
<
style rel="stylesheet" type="text/css">
div.text {
  
font-familyArial;
  
font-size16px;
  
font-weightbold;
  
color#FEF9ED;
  
border-top:2px solid #9E6E2E;
  
background-color#E48E4B;
  
float:right;
  
line-height20px;
  
padding0 22px 0 12px;
  
margin-top: -4px;
  
}
</
style>
</
head>
<
body>
   <
div class="text">
      
Changing the background of the div tag appears obviously,  
      </
div>
</
body>
</
html>
 




Post a reply
  Related Posts  to : Change the properties of div tag
 Change CSS Properties from JQuery     -  
 links CSS properties     -  
 Java properties utility     -  
 Class static properties     -  
 Changing the color and properties of the header tag     -  
 demonstrate how to add lighting and material properties     -  
 Define boolean Class properties     -  
 JFrame properties for an Applet to be embedded in website?     -  
 simple code to read properties in java     -  
 How to change the JAR Icon     -  

Topic Tags

HTML Div