Results 1 to 2 of 2

Thread: Using two images in one class of CSS

  1. #1
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using two images in one class of CSS

    hi,
    This is Kashif from Pakistan. Plz help me that how to use 2 images in one css class ? waiting to hear from u soonest

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You would use one class for 2 (or more) images, when you want the images to share a similar style. So, if you wanted some images to have a red border, your would put that in your css, and then add that class to each picture:

    Code:
    <style>
    .redpics {border:red solid 1px;}
    </style>	
    
    <img src="left.gif" class="redpics">
    <img src="right.gif" class="redpics">

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •