2 replies [Last post]
nootkan
nootkan's picture
Offline
newbie
Gold River, B.C. Canada
Last seen: 4 years 32 weeks ago
Gold River, B.C. Canada
Timezone: GMT-8
Joined: 2006-11-15
Posts: 9
Points: 13

Been trying to add a space between an image and the text description next to it but the css I've tried isn't working. Can someone provide some assistance?
My attempts:
#latest_ads .premium_even  .premium_odd .photo img{padding-right: 10px;}
#latest_ads .premium_even  .premium_odd img{padding-right: 10px;}

The php generated html:

<div class="latest_ads">
                    <h1><strong>Premium Listings</strong></h1>  
 
                                <table border="0" cellspacing="0">
     <tbody>
                            <tr class="premium_even">
                                 <td class="photo">
                                             <img src="http://mywebsite.com/themes/nootka_colors/images/no_photo.gif" title="" alt="" />
                                     </td>
                                  <td class="text">
                     <h3>
                         <span style="float:left;"><a href="http://mywebsite/for-sale/fishing/waders_i5">Waders</a></span><span style="float:right;">Sponsored ad</span>
                     </h3>
                     <p style="clear: left;">
                         <strong>80.00 CAD$ - Gold River (Vancouver Island) - November 25, 2013</strong>
                     </p>
                     <p>A set of neoprene waders with boots for sale.</p>
                 </td>
             </tr>
                                <tr class="premium_odd">
                                 <td class="photo">
                                             <a href="http://mywebsite/services/web-designhosting/van-isle-bc-web-solutions_i4"><img src="http://mywebsite/uploads/3_thumbnail.jpg" width="75" height="56" title="" alt="" /></a>
                                     </td>

nootkan
nootkan's picture
Offline
newbie
Gold River, B.C. Canada
Last seen: 4 years 32 weeks ago
Gold River, B.C. Canada
Timezone: GMT-8
Joined: 2006-11-15
Posts: 9
Points: 13

I figured it out. I used

I figured it out. I used this and it worked.
.home #main .latest_ads table td.photo img {padding-right: 10px;}

sudhakar12
sudhakar12's picture
Offline
newbie
Bangalore
Last seen: 6 years 34 weeks ago
Bangalore
Timezone: GMT+5.5
Joined: 2014-01-28
Posts: 4
Points: 4

Hi nootkan,

Hi nootkan,
There is your create image is one of table definition like . your create a td also one class so here next you are create images also another one class there is you set your padding is correct.. its ll come to text and images space and then other &nbsp used...