View Full Version : doctype advise!
Magix
2006-07-13, 05:16 AM
Hey, i had a free site which look good on IE and opera, but on firefox, it had problem, whole table went black instead of being yellow, i removed the doctype (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) description, and checked it on opera, firefox, ie, and netscape. and it's working fine now.
So my question is! is everything alright with link lists, because i've had a problem here at Link-o-rama, where the freesite was without that doctype thing, my page was declined...
So, is it ok to remove the doctype description?|huh
I use a shorter version of what you had.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
I have very few cross browser issues.
Magix
2006-07-13, 09:36 AM
I use a shorter version of what you had.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
I have very few cross browser issues.
Same with this "doctype" when i insert it, the table in firefox looks black ....
can you post a link to the page in question? I have a hunch you may be trying to use some non-compliant coding, and Firefox/Mozilla is far less forgiving about such things.
MrYum
2006-07-13, 11:51 AM
can you post a link to the page in question? I have a hunch you may be trying to use some non-compliant coding, and Firefox/Mozilla is far less forgiving about such things.
Very true...FF is much less forgiving of bad code.
The good news is usually if it looks good in FF, it will look good in IE too. Not always, but usually that's the case. I tend to preview everything in both browsers before releasing it on the public |thumb
Magix
2006-07-13, 12:33 PM
ok the link is:
http://www.pornomagix.com/freesites/21/bestbigtits/index.html
now it looks good in Firefox, but with the doctype it doesn't, whole table with enter becomes black...
Maj. Stress
2006-07-13, 12:52 PM
try adding a # in front of the hex color codes ;)
try adding a # in front of the hex color codes ;)Agreed. Also, I rechecked my standard DOCTYPE statement and it's not quite the same as the shortened version of what you were using.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
HTML 4.01 instead of XHTML 1.0
A good way to locate problems like this one is to run the page past a validator. Such as http://validator.w3.org/
I started adding doc type to my pages after I noticed my tables were having issues with some browsers.
Been using this and I think it is working correctly across browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Like on this page of mine
http://kinky-cleo.com/porn/foxyangel/nefertiti-on-the-stairs/tgp/index.html
MrYum
2006-07-13, 01:45 PM
Agreed. Also, I rechecked my standard DOCTYPE statement and it's not quite the same as the shortened version of what you were using.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
HTML 4.01 instead of XHTML 1.0
A good way to locate problems like this one is to run the page past a validator. Such as http://validator.w3.org/
Just checked...that's the same doctype code I use |thumb
Also, great advice on running a validator...helps a ton to pick up errors that cause these kinds of problems. I'd bet the Major is right on the mark about the lack of a '#' in front of the hex color codes is causing your problem.
On a side note...curious, why do you end some of your html tags with a ' />'? Obviously, the '>' is necessary, but I'm seeing quite a few sites using the ' /'...which I don't believe is needed |huh
That is proper coding for xml
http://www.w3schools.com/xml/default.asp
Magix
2006-07-13, 05:39 PM
thanks everyone :)
Magix
2006-07-13, 05:44 PM
YEY it's working thanks very much :)) and # and doctype is working :)))
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.