Problem with Doctype and Fontsize

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
AndreasK67
Beginner
Beginner
Posts: 3
Joined: Wed Feb 08, 2006 7:04 am

Problem with Doctype and Fontsize

Post by AndreasK67 »

Hello,

it's maybe a very simple problem, but I can' t find the reason.

When I define a Doytype like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

the fontsize, which I have set in the menu_data, will be ignored.

What is the reason for this problem?

Thanks

Andreas
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Which browser, which OS?

There could be a number of reasons. I use that doctype all the time when I'm doing testing for things in the forum and I never have a problem with the font size being ignored, so we really need to see the page to figure out just what might be causing that. We need the html, the css, the menu data info, so a page is the easiest way to get all of it.

Ruth
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

did you set

/* <![CDATA[ */ after the beginning script tag and /* ]]> */ before the </script> end tag?

I´m not an XHTML expert, but as much as I can find out, xhtml requires this. There might be some other preconditions for correct processing of xhtml. Cannot say anything without seeing the file.


Michael
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I use the following for all my pages...

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Even without a CDATA everything works just fine (except it probably won't validate as a clean XHTML page).
John
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi John

good to know

Michael
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

It's really wierd, Michael. I never was able to get that silly CDATA to work (it always gave me errors of one kind or another), so I just left it out and things started working.
John
Post Reply