Total members 11895 |It is currently Sat Dec 21, 2024 12:37 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

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



Topic Tags

HTML Div
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com