You are here: Re: DOCTYPE / background-image madness! « HTML « IT news, forums, messages
Re: DOCTYPE / background-image madness!

Posted by TC on 07/24/06 09:01

TC wrote:
> Els wrote:
> > TC wrote:
>
> > > Problems:
> > >
> > > (1) IE6 only displays the background image if I remove the DOCTYPE
> > > declaration. If I retain that declaration, it does not display that
> > > image, even though it still obeys the other aspects of the 'extlink'
> > > style.
> >
> > Usually that means that you've done something wrong in the code, which
> > IE will "forgive" if you have it in Quirksmode, since in Quirksmode it
> > doesn't "have to" follow the W3C guidelines.
> >
> > Add the doctype, then *validate your code*, and fix the errors. If
> > then still IE doesn't show your background, come asking and show an
> > online example of what it is that's not working.
>
> Yes, good idea to validate first. I'll try that now. But I suspect that
> there is no point putting an example online - it will almost certainly
> *work* online :-)

Ok, I just validated my file C:/test.htm at http://validator.w3.org/.
It objected (rather obscurely) to the missing TITLE element. I added
<TITLE>blah</TITLE> to the HEAD element, and now it validates as: "This
Page Is Valid HTML 4.01 Transitional!".

I re-checked what I said in my original post, and it is still the same.
The DOCTYPE element stops the background mage from rendering when I run
the HTML file from my hard disk :-(

Any ideas why?

TIA,
TC (MVP MSAccess)
http://tc2.atspace.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация