[Web4lib] basic html question
Cloutman, David
DCloutman at co.marin.ca.us
Fri Jan 2 13:40:21 EST 2009
Doesn't sound trivial to me. If the application calls for JPEG, then you
should use JPEG.
It might help if we knew which version of IE you are using. There are a
lot of idiosyncratic bugs in various versions of IE that do not occur in
others. For instance, if you're on IE 6, try testing on 7. I find that a
number of issues pop up in testing that I missed as we have a handful of
employees that still use IE 6 for compatibility with one of our internal
systems.
Here are two things to try. Add a unit of measure to your CSS in the
style attribute. For instance use "0px" instead of "0". Stylesheets tend
to default to px, but generally when coding anything, it is best not to
rely too much on default behaviors. Also, try adding a border attribute
to you img tag. Set it to 0, or whatever width you want it to be. Again,
most browsers will render the image with a default setting, but it is
best not to expect it to be consistent with what you want.
Good luck solving your bug.
- David
---
David Cloutman <dcloutman at co.marin.ca.us>
Electronic Services Librarian
Marin County Free Library
-----Original Message-----
From: web4lib-bounces at webjunction.org
[mailto:web4lib-bounces at webjunction.org] On Behalf Of Richard James
Sent: Friday, January 02, 2009 10:22 AM
To: web4lib at webjunction.org
Subject: [Web4lib] basic html question
one of those answers that will occur instantly to someone on this list:
I recently edited one of my web pages to insert a graphical banner at
the
head of the page. For some reason, the header would not display in IE if
it
was a JPEG file, and would only display as a GIF. In Firefox et al, it
displayed fine in any format. The code used was <h2
style="margin-bottom:
0"> <img src="/icons/SummitIcon.GIF" height="69" width="700" /> </h2>
It's a trivial point, but the res of the JPG was much better and makes
the
site look crisper. Any ideas?
_______________________________________________
Web4lib mailing list
Web4lib at webjunction.org
http://lists.webjunction.org/web4lib/
Email Disclaimer: http://www.co.marin.ca.us/nav/misc/EmailDisclaimer.cfm
More information about the Web4lib
mailing list