Help with Changing the Background Color of a single div tag!
Posted: 18 October 2008 06:16 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2008-10-18

If anyone could help me I need help changing the bg color of a div tag so just that div tags a different color then the rest of the webpage. Now im using dw and this is my code that i need to enter the div tag for background color

<div class="col-1">
                <
div class="indent-2">
                  <
p>&nbsp;</p>
                  <
p><span class="TitleText">Testimonials</span> <br />
                    </
p>
                  <
h4>uiser ultricies pharetra magna.</h4
                <
p>Donec accumsan malesuada orciDonec sit amet erosLorem ipsum.</p>
                <
div class="inner">
                <
img src="images/2page_img1.jpg" alt="" class="img-left" />
                
"...Mec accumsan ada orci. Donec sit amet eros. Lorem ipsum dolor sit aetr ameter, consectetu..."<br />
                <
class="fright font-3">Marta Healy</b>                </div>
                <
div class="line"></div>
                <
div class="inner">
                <
img src="images/2page_img2.jpg" alt="" class="img-left" />
                
"...Mec accumsan ada orci. Donec sit amet eros. Lorem ipsum dolor sit aetr ameter, consectetu..."<br />
                <
class="fright font-3">John Franklin</b>                </div>
                <
div class="line"></div>
                <
div class="inner">
                <
img src="images/2page_img3.jpg" alt="" class="img-left" />
                
"...Mec accumsan ada orci. Donec sit amet eros. Lorem ipsum dolor sit aetr ameter, consectetu..."<br />
                <
class="fright font-3">Laura Stegner</b>                </div>
                <
div class="line line-indent"></div>
                <
a href="#"><img src="images/button_more.jpg" alt="" class="fright" /></a><br /> <div class="clear"></div>
              </
div>
          </
div
Profile
 
 
Posted: 19 October 2008 09:16 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-19

there were quite a few divs in that code… but i’m going to assume that you want to change the color of the first one and reply accordingly.

Using css, you would change the color of that particular div like this:

div.col-1{
background
:#ff0000;
Profile
 
 
Posted: 27 October 2009 01:33 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2009-10-27

You should try out what Josh suggested above. It might work. If it doesn’t then tell us about it here again.


Regards,
Leena
Placement financier

Profile