Log In · Register

 
XHTML 1.0 & I.E. 7 Question and Help, Need help with XHTML 1.0 and I.E. 7
VGADisciple
post Feb 7 2007, 10:45 PM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: Feb 2007
Member No: 501,636



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?
 
 
Start new topic
Replies
VGADisciple
post Feb 8 2007, 04:58 AM
Post #2


Newbie
*

Group: Member
Posts: 3
Joined: Feb 2007
Member No: 501,636



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.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: