Results 1 to 3 of 3
-
11-17-2011, 07:41 PM #1
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,176
- Thanks
- 744
- Thanked 701 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
How to Remove White Space For Image Inside a Div - IE7
How to Remove White Space For Image Inside a Div - IE7
In IE7 if you place an image inside a div you might get some extra white space between the bottom of your image and bottom of the div.
Example:
<div style="border:1px solid #ccc;">
<img src="myimage.jpg" alt="" />
</div>
See attached image for example.

To remove this add these two styles to the image.
display:block; vertical-align:bottom;
Revised code is here:
<div style="border:1px solid #ccc;">
<img src="myimage.jpg" alt="" style="display:block; vertical-align:bottom;" />
</div>Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
-
11-18-2011, 01:42 AM #2
Sophomore
- Join Date
- Nov 2011
- Posts
- 70
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
-
11-18-2011, 10:18 AM #3
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,176
- Thanks
- 744
- Thanked 701 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
Similar Threads
-
If the image is not on the image folder show "no image"
By Abina in forum ColdFusionReplies: 4Last Post: 11-30-2011, 12:09 PM -
Is it possible to add image inside table?
By aruna in forum HTML / DHTMLReplies: 3Last Post: 03-22-2011, 08:10 AM -
increasing trend of white space in design
By krisov in forum Web Development - Programming & CodingReplies: 3Last Post: 03-10-2010, 03:14 AM -
Increasing trend of white space in design
By kriss.ov in forum Graphics Design & Web DesignReplies: 0Last Post: 02-12-2010, 01:50 AM -
Specify the white space between words
By krates98 in forum CSSReplies: 1Last Post: 02-25-2009, 10:51 PM


Reply With Quote

