View Single Post
  #7  
Old 09-29-2014, 08:34 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Gray border to banner images

<div style="background-color: #b0c4de;">

Make sure you put quotes "" around the value of any property you declare in HTML. Also "class" is used to set a class that you will define elsewhere. As in class="my_style" and then in a separate style sheet named style.css:
.my_style {
background-color: #b0c4de;
}

"style" property is for when you want an inline defined style, without referencing an exteernal style sheet. Either way will work for your purpose here.

Quote:
Originally Posted by suseela
Hi Mike,

Please let me know where am I wrong:
<div class=background-color: #b0c4de;>
<p>
<a href="https://www.indiancarnival.com/Earrings/"><img alt="" src=" /skin/common_files/images/banners/diamond_earrings_bannerw.jpg" /></a><a href="https://www.indiancarnival.com/Pendant/"> <img alt="" src=" /skin/common_files/images/banners/Tribal_Lapiz_Pendant_bannerw.jpg" /></a></p>
<p>
<a href="https:www.indiancarnival.com/Clutch-Purses/"><img alt="" src=" /skin/common_files/images/banners/banner_699_210w.jpg" /></a></p>
<p>
<a href="https:www.indiancarnival.com/Paintings/"><span style="background-color:#ffff00;"> </span><img alt="" src=" /skin/common_files/images/banners/banner_348_500.jpg" /><span style="background-color:#ffff00;"> </span></a><a href="https:www.indiancarnival.com/public_profile.php?provider=78"><span style="background-color:#ffff00;"> </span><img alt="" src=" /skin/common_files/images/banners/featured_designerw.jpg" /></a></p>
<span style="background-color:#ffff00;"> </span></div>
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote