Programming, ASP.NET, C#, JavaScript and Computer Life
Ralph Whitbeck
Home
Contact
Subscribe
Monday, February 20, 2006
IE 6, XHTML and the image space
OK IE 6 has a great little bug/feature where if you set your page type to XHTML and you put an image on the page let's say a logo in your header, most times you want your image to be flush with the bottom element, perhaps a border of the container div the image is in. If you leave the image unprocessed then you'll run into the problem where a 1px space shows up under your image. This is very frustrating when your looking for a clean layout.
I googled for an answer and either I wasn't searching right or there really isn't an answer on the topic but I couldn't find a solution to the problem.
Asked my friend Travis and he gave me the simple solution to this problem.
img
{
display: block;
}
That's it. This will butt everything up on all sides.
Monday, February 20 2006 at 6:13 PM |
Comments [1]
Tags:
Programming
Saturday, August 02, 2008 7:25:30 AM (Eastern Daylight Time, UTC-04:00)
rrtqiycy http://jfokisek.com geiebekn nbexvoxv [URL=http://rgsdsomq.com]zqacefwa[/URL]
altwahco
vtgkwabu
Name
E-mail
Home page
Remember Me
Comment (Some html is allowed:
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u
)
Enter the code shown (prevents robots):
Blog Posts by:
Recent
Month
Category
Search
Currently Viewable:
My Twitter Updates
View Twitter Page
Contact Ralph
E-Mail
Click icon to send me e-mail.
Instant Messenger
AIM:
RedWolves2
Social Networks
Twitter:
http://twitter.com/redwolves
Last.fm:
http://last.fm/user/RedWolves/
Close
Subscribe
Main Feed
Category Feeds
BrandLogic
Entertainment
Fitness
How-to
Interesting Links
Mussings
Personal Finance
Politics
Programming
Simple Shadow
Sports
Sushi
Technology
Other feeds
Twitter updates: RedWolves
MediaGab Forum posts
Close
Blog Posts
Recent
jQuery Plugin - Simple Shadow
Adding link separators to a unordered list using jQuery
How to target="_blank" a link while keeping it XHTML compliant with jQuery
Book Review: "Smart & Gets Things Done" by Joel Spolsky
My first JSON Implementation
Gary Vaynerchuk @ Tech Cocktail Chicago
Google I/O 2008 - Day 1
Kings of Code 2008
Close
Blog Posts
Month
August, 2008 (1)
July, 2008 (1)
June, 2008 (3)
May, 2008 (4)
April, 2008 (4)
February, 2008 (1)
January, 2008 (2)
November, 2007 (4)
October, 2007 (5)
July, 2007 (2)
May, 2007 (2)
April, 2007 (1)
February, 2007 (5)
January, 2007 (16)
December, 2006 (5)
November, 2006 (3)
October, 2006 (10)
September, 2006 (6)
August, 2006 (3)
July, 2006 (17)
June, 2006 (16)
May, 2006 (13)
April, 2006 (4)
March, 2006 (9)
February, 2006 (10)
January, 2006 (23)
December, 2005 (3)
Close
Blog Posts
Category
BrandLogic
Entertainment
Fitness
How-to
Interesting Links
Mussings
Personal Finance
Politics
Programming
Simple Shadow
Sports
Sushi
Technology
Close