Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Font Size and XHTML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedFont Size and XHTML

 Post Reply Post Reply
Author
Rik_ View Drop Down
Newbie
Newbie


Joined: 30 May 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rik_ Quote  Post ReplyReply Direct Link To This Post Topic: Font Size and XHTML
    Posted: 30 May 2007 at 9:10pm
Couldn't be change the tag font into style attribute? This could be great for using the output on XHTML sites.

It is strange because if I use change font, the editor generate code with Style instead of tag Font Face="x". If I change size the editor generate tag Font Size="x".

Can this be solved?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2007 at 8:35am
The RTE uses the RTE API of the web browser you are using. It is the web browser that creates the HTML code.

If you use Firefox it will use style tags, but if you use IE it will produce sloppy code which uses things like FONT tags.
Back to Top
Rik_ View Drop Down
Newbie
Newbie


Joined: 30 May 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rik_ Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2007 at 8:56am
Oh my GOD! Wacko That's unmanageable!

PS: Anyway the above beheaviour was referred to Firefox last version 2.0.0.3.

I was looking for a very simple text area editor with this only feature:
bold,  color, size. Optionally, italic, underline, the alignement and links. Stop.
BUT, the output code must be XHTML 1.0 strict or 1.1, avoiding the user to destroy the validation of the page.
Instead I find lots of online editor that use stuff like <font size="x">

RTE is one of the few that have only the problem of <font size="x"> while is using Style for any other thing. Anyway... after you answer I tried with IE and that change everything... I got <font face> instead of Style="font-family" i got with FF.... so I must abandon.

Thanks a lot.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.