Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Extra space in div in IE and firefox
(1 viewing) (1) Guest
All your queries regarding CSS will be solved in this forum
  • Page:
  • 1
TOPIC:

Extra space in div in IE and firefox

Extra space in div in IE and firefox 10 months, 1 week ago #692

  • kate
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
In both Firefox and IE I am getting extra space at the bottom of one of my divs and I can't see where it's coming from. I made the background color of the div red so you can see which div has the extra space.
In addition, in IE there is a 1px of extra space on the left edge of the div.

Re: Extra space in div in IE and firefox 10 months, 1 week ago #696

  • sami
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Put one of the following code in your css file

Code:
a img
{
display:block;
}

...or...

Code:
a img
{
vertical-align:top;
}
  • Page:
  • 1
Time to create page: 2.04 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download