VGADisciple
Feb 7 2007, 10:45 PM
I have a help question to anyone that can help me.
I noticed that Internet Explorer 7 isn't reading my images properly and scrollbars are appearing around my images, and making them unclickable for the the images I use as links.
I use a Mac, and run Safari as my main browser, and I have 13 other browsers installed also, and they all work fine with my website.
But visitors using the Windows version of I.E. 7 can't properly view my page, so I had to switch back to HTML 4.1
Here is my code that is not working properly:
<code>
<p class="center">
<a href="http://www.w3c.org" target="_blank">
<object data="images/xhtml_1_compliant.png" type="image/png"></object>
</a>
</p>
</code>
I had to take out the <object> tag and replace it with the <img> tag for it to work in I.E. 7 on Windows.
Can anyone help me with this issue? Is my code incorrect? Or is it just another wonderful MS product that refuses to work properly?
mipadi
Feb 8 2007, 01:30 AM
Is there a reason you were using <object> to embed an image, rather than <img>?
VGADisciple
Feb 8 2007, 04:58 AM
I used <object> because in my XHTML 1.0 book, it stated that the <img> tag has been replaced by using the <object> tag, and it works fine in the 11 browsers I have installed on my computer, including I.E. 5 for Mac.
But for some reason it doesn't work in I.E. 7 on Windows, but it works in Firefox and Netscape on Windows just fine.
I may be forgettings something in the <object> tag, but I ran my pages through the www.w3c.org XHTML validator, and they come back error free, so I can't figure out why I.E. 7 won't parse the code correctly.
Also, I know in XHTML 2.0, the <img> tag has been replaced by putting the src attribute into any HTML tag that you want a picture to appear in. Like this: <p src=images/mypicture.jpg" This is a picture of me.></p>. But I noticed that most browsers are not XHTML 2.0 compliant for some reason yet, so I didn't code the site using any of the new XHTML 2.0 methods.
mipadi
Feb 8 2007, 08:35 AM
XHTML 2.0 isn't nearly finalized yet, which is why browsers don't support it.
I'd just use the <img> tag. As far as I know, it hasn't been deprecated in either XHTML 1.0 or XHTML 1.1, and works fine in any browser.
VGADisciple
Feb 8 2007, 04:51 PM
Yeah, I switched back to using <img> for images. Thanks for the reply, I appreciate the help.
I like these forums, I'm new to them.
I'm sure I'll have more questions, and I can probably answer questions if anyone needs help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.