I'm sure, what it works with points. But my full website use small as main font size for Web Accessibility. So I would therefore not necessarily small.
My basic font size is small and x-small for IE5. I set all other sizes in percent relativ to the basic size. But my question is, why the size is different on the editor and the preview?
I've checked the doctype on the editor - it exists...
I took a look at your test page and was able to reproduce this problem in my test environment. Here's what I found out.
1. If you specify DOCTYPE explicitly, IE misunderstands base font size and displays text in preview one size smaller. When I commented out DOCTYPE in the FCK config file, preview started to look exactly as it was in the editor. This happens probably because the editor creates two levels of IFRAME's on top of the text area and the document in the first-level IFRAME is HTML transitional and in the second-level what you specified - XHTML. It seems that this throws IE off.
2. If you do want to keep using XHTML DOCTYPE, use em to specify font size. This still allows your visitors to change their font size through the browser's controls. That is, in the editor area CSS, use something like this:
body {font: 1em Arial, sans-serif;}
I tried this approach out with IE6 and FF and it works just fine - the editor and the preview window show text in the same size and when I select larger/smaller in the browser's View menu, rendered text changes size.
Re: Error in Version 2.6 Build 18638 with Doctype
It would be nice if someone can help me. Thanks.
Re: Error in Version 2.6 Build 18638 with Doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
body { font-size: small; }Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
But my question is, why the size is different on the editor and the preview?
I've checked the doctype on the editor - it exists...
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype
1. If you specify DOCTYPE explicitly, IE misunderstands base font size and displays text in preview one size smaller. When I commented out DOCTYPE in the FCK config file, preview started to look exactly as it was in the editor. This happens probably because the editor creates two levels of IFRAME's on top of the text area and the document in the first-level IFRAME is HTML transitional and in the second-level what you specified - XHTML. It seems that this throws IE off.
2. If you do want to keep using XHTML DOCTYPE, use em to specify font size. This still allows your visitors to change their font size through the browser's controls. That is, in the editor area CSS, use something like this:
body {font: 1em Arial, sans-serif;}
I tried this approach out with IE6 and FF and it works just fine - the editor and the preview window show text in the same size and when I select larger/smaller in the browser's View menu, rendered text changes size.
Andre
Re: Error in Version 2.6 Build 18638 with Doctype
Re: Error in Version 2.6 Build 18638 with Doctype