Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

doctype problems


  • Please log in to reply

#1
lil_cat_luver

lil_cat_luver

    Member

  • Member
  • PipPipPip
  • 296 posts
I tried to validate my page at the W3C validator (both HTML 4.01 and XHTML 1.0 got the same results), and it gave me two errors. Can someone please tell me how to correct them?

I'm using a transparent iframe on the page, with the following code:

<iframe name="iframe" src="home.html" frameBorder=0 width=520 height=1500 allowtransparency="true" style="position:absolute; left:350; top:280" scrolling="auto">If you see this text, iframes are not enabled on your browser, please update to the newest version of Internet Explorer</iframe>

One of the errors says the attribute allowtransparency="true" doesn't exist. I searched a little on google, but all the tutorials on transparent iframes use the allowtransparency tag. What would I have to do to get a transparent iframe that validates?

The second error says that I did not declare a doctype. So, I went on ahead to add the HTML 4.01 Transitional doctype, at the top of the page. After I added it, I looked at the page and the iframe along with another div layer ended up at the top of the page and overlaps eachother.

Take a look at the before and the after.

Please help! :) :) This stupid thing is driving me crazy.

EDIT: I added the doctype without a url and all of a sudden, everything's back to normal. The "after" page works normally now...??? Anyways, I'm still looking for a transparent iframe that's valid :tazz:

Edited by lil_cat_luver, 04 September 2005 - 08:59 PM.

  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP