div style background

div style background

How to add background color to a div? What is the code of div style background?

View Answers

January 20, 2013 at 5:28 PM

Hi,

You can use the following code:

<div style="background-color: #ccffcc;">
<p>Content</p>
</div>

Thanks

Ads









Related Tutorials/Questions & Answers:
div style background
div style background  How to add background color to a div? What is the code of div style background?   Hi, You can use the following code: <div style="background-color: #ccffcc;"> <p>Content</p> <
div background color in html
div background color in html   How to change the background color of DIV in HTML
Advertisements
div style float right
div style float right  How to align div to right? Share me the code for div style float right. Thanks   Hi, You can use following code: <div style="float: right; widht:300px; height:600px;"> <p>Content<
how to change div background color in javascript
how to change div background color in javascript  how to change div background color in javascript ?   <div id="Name">   <div... and last name</p>   </div> var div = document.getElementById( 'div
How to add background image to div using CSS?
How to add background image to div using CSS
background
background  how to add image as background to a frame
working of a div tag in html
;body> <div style="width:100%; height:650px; background-color:#FF0000;"> <div style="background-color:#990066; width:100%; height:20%;">menu</div> <div style="width:15%; height:80%; background
How to align div side by side?
="container"> <div class="floatingDiv" style="background:#FF0000;">...;/div> <div class="floatingDiv" style="background:#00FF00;"> <p>4</p> </div> <div class="floatingDiv" style="background
div overflow hidden
div overflow hidden  How to make div overflow hidden? Thanks   Hi, Here is the code: <div style="widht:200px; height:600px; overflow:hidden;"> </div> Thanks
JavaScript getElementById div
; </head> <body> <div style="background: #DFDFFF...;/p> <div id="myDiv" style="background:#ffffdd; height... JavaScript getElementById div
indent div css
Div file in css  How can i indent div with outer and inner margin... it in another div. For example, make the outer div margin: 0 auto; and the inner div.... Indent div in css <html> <head> <title>Indent div
JavaScript getElementById Style
() and changes the style property of the specified div with the element's style... of code defines a function into which specified div's background color is being...; <div style="background: #DFDFFF; width:'100%';"
jQuery Toggle the Div
the Div where id is "div1" and having style css #div1 { width:70... jQuery Toggle the Div      ... of a Div Steps to develop the Toggle of a Div . Step 1:       Create
JavaScript getAttribute Style
; <div style="background: #DFDFFF; width:'100%';" align="...;center> <div id="myDiv" style="background:#ffffdd; height... JavaScript getAttribute Style
JavaScript Hide Div
JavaScript Hide Div...; In this section, we are going to hide div element on clicking the button using the JavaScript. In the given example, we have created a div element using <div>
GRADIENT BACKGROUND
GRADIENT BACKGROUND  How to set gradient colors a s background for a jframe? pls help me..............   http://www.roseindia.net/java/example/java/swing/GradientColor.shtml
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
JavaScript move div
JavaScript move div...; This section illustrates you how to move a div element on the window using JavaScript. In the following code, we have defined a div element consisting of text
Setting bootstrap container background color
Setting bootstrap container background color  How to set the background color of the container in bootstrap for a web page? Thanks   Hi, You can set the color using the following code: body { background-color
How to design a background, design a background, a background
How to design a background       If you don't have background, don't worry because you will learn here how to design a background by this example. New File: Take a new file. Choose
scrolling div ipad
scrolling div ipad   Please suggest me how to scroll the div in iPad UIWebView? Thanks
class of div tag
class of div tag  How can i recognize the selected DIV class
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
indent div css
indent div css  How can i indent with outer and inner margin?  .../answers/viewqa/HTML/17553-indent-div-css.html :Indent DIV in CSS
How to change background, change background
How to change background       This example will teach you to change background of any object... a picture to change background. Selection: Make selection by the Magic wand tool
UIToolBar background image
UIToolBar background image  Hi, How to set background image of UIToolBar? Give me code for adding UIToolBar's background image. Thanks
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance

Ads