Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    6
    Member #
    11900
    I wanted to pad only *one* image on a page, but the rest get padded too with this :
    Code:
    img{
    padding-right:1em;
    padding-bottom : .2em;
    
    }
    and this html code
    Code:
    <span style="padding:5px;"><img src="41.jpg" name='SlideShow' align="left" width="258" height="375" alt="padding + border test image"/>
    </span>
    Can I make the above code apply to just one image? Thanks.

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Code:
    img.main {
    padding-right:1em;
    padding-bottom : .2em;
    }
    and then
    HTML Code:
    <img src="41.jpg" name='SlideShow' class="main" align="left" width="258" height="375" alt="padding + border test image" />

  4. #3
    Senior Member Stylise's Avatar
    Join Date
    Jul 2005
    Location
    Mount Martha, Australia
    Posts
    229
    Member #
    10679
    HTML Code:
    img.padded {
    padding-right: 1em;
    padding-bottom: .2em;
    }
    
    <img src="" class="padded" alt="" />

  5. #4
    Junior Member
    Join Date
    Nov 2005
    Posts
    6
    Member #
    11900
    Thanks a lot..really appreciate it.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:23 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com