Log In · Register

 
 
Closed TopicStart new topic
div help, puttin background color
bbygirlbeats
post Jul 8 2007, 04:23 PM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: May 2006
Member No: 411,061



i want to make the background of the content in my div to have a different color not the whole background just where i put stuff such ass; pictures; links; text; etc. i've done it before but it was heellla long agoo
 
Clashing
post Jul 8 2007, 04:35 PM
Post #2


Senior Member
*****

Group: Member
Posts: 371
Joined: Jun 2007
Member No: 530,773



you need to put a background code inside the div you want the background color to be in. so, for example... <div style="background:#000000;">
 
YourSuperior
post Jul 8 2007, 04:39 PM
Post #3


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Or you could give your div a name, and use css to give it a background color. Like this:

CODE

<style type="text/css">
div.content{
background-color: #000000;
}
</style>

<div class="content">
TEXT & SUCH HERE
</div>
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: