search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
10 views
asked Sr Member 5k points 7 9 12

1 Answer

0 votes
 
The <div> element stands for division and is used to segregate a group of elements.
 
Example
 
<html>
<body>
     <div style="background-color: #CCFFCC; border: 1px none #000000;">
          <p>This div element contains only text.</p>
     </div>
</body>
</html>
 
answered Sr Member 4.8k points 10 25 31

Related questions

0 votes
1 answer 43 views
43 views
Is anyone know how to horizontally center DIV in DIV with CSS ( if it's possible at all ). Outer DIV has 100%: <div id="outer" style="width:100%"> <div id="inner">Foo foo</div> </div> I searched but not found this anywhere...
asked arnav Sr Member 1.3k points 9 21 28
0 votes
1 answer 47 views
47 views
asked rock Expert 15k points 15 23 29
0 votes
1 answer 36 views
36 views
asked rock Expert 15k points 15 23 29
0 votes
1 answer 34 views
34 views
asked rock Expert 15k points 15 23 29
0 votes
1 answer 31 views
31 views
asked smith Geek 15.3k points 14 39 60
...