Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2007, 03:42 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Smile img padding is not working

i wonder why the padding doesnt work to give space between border and image on ie7. it works fine on firefox though.
Reply With Quote
  #2 (permalink)  
Old 06-18-2007, 04:05 AM
Senior Member
 
Join Date: May 2007
Posts: 276
Default

Quote:
Originally Posted by biatche View Post
i wonder why the padding doesnt work to give space between border and image on ie7. it works fine on firefox though.

I m also faced same problem
Finally I redesign and avoid such troublesome parts!!!!
Reply With Quote
  #3 (permalink)  
Old 06-18-2007, 04:07 AM
Senior Member
 
Join Date: May 2007
Posts: 908
Default

Use a proper and complete DOCTYPE declaration, then wrap your link around a DIV (since inline elements cannot be direct children of the BODY), and then set your anchor and image to block via CSS and assign widths and heights to them in your stylesheet.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0