Forums / General Questions / My banner won't display when using "<!DOCTYPE html PUBLIC"

My banner won't display when using "<!DOCTYPE html PUBLIC"

Locked

Views: 890

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Feb 2009, 10:14 AM
#1
greenlight avatar

greenlight

Zen Follower

Join Date:
Aug 2008
Posts:
138
Plugin Contributions:
0

My banner won't display when using "<!DOCTYPE html PUBLIC"

the file html_header.php contain this sentence
“<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">” !
i found use that sentence my site‘s banner cannot display on firefox brower 。
i think it is not common , or my code have some problem 。

forum.red-host.cn
It is a platform for communicate about SEO, Online store.

17 Feb 2009, 11:28 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: My banner won't display when using "<!DOCTYPE html PUBLIC"

It looks like there's a more general problem with that line and it has been double-spaced. Consequently the doc type statement is on the second line instead of being the very first thing. This in turn means that some browsers (including Firefox) won't recognise it and therefore aren't sure how to interpret some aspects of the layout, which may include your banner.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 Feb 2009, 8:42 AM
#3
greenlight avatar

greenlight

Zen Follower

Join Date:
Aug 2008
Posts:
138
Plugin Contributions:
0

Re: My banner won't display when using "<!DOCTYPE html PUBLIC"

Thank you !
I understand now .

forum.red-host.cn
It is a platform for communicate about SEO, Online store.