Hi,
This is kind of urgent :). Why does not Explorer 6 understand code like:
In css-file:
.button_style {
padding-top:3px;
padding-bottom:4px;
padding-right:8px;
padding-left:8px;
}
Also, why do cells in a table (containing menu-images) gain some extra whitespace below themselves even thou I've set the correct height, padding to zero and cellspacing/padding equal to zero.
http://nitordesign.se/biobank/datamanagement.php has all these problems in explorer 6 but not in any other browser.
Thanks!
Mike
CSS and Explorer 6
Moderator: General Moderators
IE
Ok, but the cells that contain them shoudl have right? Am I mistaken to think that you can remove whitespace around a image by reducing the margins of the cell around it to zero?
I've fixed the problem now. It looks great in all browsers.
Mike
I've fixed the problem now. It looks great in all browsers.
Mike
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
IE, Firefox, etc. CSS and it's rendering varies among most. One other fix for IE at least is to give the block element surrounding the image the style:
style="display: inline;"
This usually removes the bottom space beneath images. Firefox ignore this incidentally.
Also on Firefox, do not give the img a style or class attribute - this adds in extra space for some inexplicable reason...
style="display: inline;"
This usually removes the bottom space beneath images. Firefox ignore this incidentally.
Also on Firefox, do not give the img a style or class attribute - this adds in extra space for some inexplicable reason...
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
In standards mode Firefox assumes images to be inline elements (aligned to the baseline), thus it must leave some space below them. Usually assigning display:block style to the image itself solves this. Take a look: http://www.quirksmode.org/css/modes/img ... trict.html (visit Quirks mode link there as well). More details available here: http://www.quirksmode.org/css/quirksmode.htmlMaugrim_The_Reaper wrote:Should solve most issues - unfortunately Firefox insists on some space below the image - to my knowledge there is no way around this.