XHTML 1.0 & I.E. 7 Question and Help, Need help with XHTML 1.0 and I.E. 7 |
![]() ![]() |
XHTML 1.0 & I.E. 7 Question and Help, Need help with XHTML 1.0 and I.E. 7 |
![]()
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? |
|
|
*mipadi* |
![]()
Post
#2
|
Guest ![]() |
Is there a reason you were using <object> to embed an image, rather than <img>?
|
|
|
![]()
Post
#3
|
|
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. |
|
|
*mipadi* |
![]()
Post
#4
|
Guest ![]() |
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. |
|
|
![]()
Post
#5
|
|
Newbie ![]() Group: Member Posts: 3 Joined: Feb 2007 Member No: 501,636 ![]() |
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. |
|
|
![]() ![]() |