Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   doctype advise! (http://www.greenguysboard.com/board/showthread.php?t=32939)

Magix 2006-07-13 05:16 AM

doctype advise!
 
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 () 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

Toby 2006-07-13 06:01 AM

I use a shorter version of what you had.
Code:


I have very few cross browser issues.

Magix 2006-07-13 09:36 AM

Quote:

Originally Posted by Toby
I use a shorter version of what you had.
Code:


I have very few cross browser issues.


Same with this "doctype" when i insert it, the table in firefox looks black ....

Toby 2006-07-13 10:17 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.

MrYum 2006-07-13 11:51 AM

Quote:

Originally Posted by Toby
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/...its/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 ;)

Toby 2006-07-13 01:03 PM

Quote:

Originally Posted by Maj. Stress
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.
Code:


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/

Cleo 2006-07-13 01:14 PM

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.
Code:


Like on this page of mine
http://kinky-cleo.com/porn/foxyangel...tgp/index.html

MrYum 2006-07-13 01:45 PM

Quote:

Originally Posted by Toby
Agreed. Also, I rechecked my standard DOCTYPE statement and it's not quite the same as the shortened version of what you were using.
Code:


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

Cleo 2006-07-13 01:55 PM

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 :)))


All times are GMT -4. The time now is 12:21 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc