homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Konqueror 4: Can't override default min font-size: 16px!
All your fonts are belong to KHTML
JAB Creations

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3685025 posted 10:26 am on Jun 27, 2008 (gmt 0)

Konqueror 4's default minimum font-size is "7" which after a bit of investigation essentially equates to 16px. I have a part of my site's GUI that requires the font-size to be no larger then 11px.

The following have yielded no results in overriding the default...
font-size !important

Essentially at best all I can do is apply white-space: nowrap; which prevents the text from overflowing. It's still difficult to read.

Obviously changing the default setting in the browser is completely unacceptable: you can't expect your visitors to adjust their personal preferences just for your site.

However in contrast this simply is an unacceptable scenario. It wouldn't be an issue if the default minimum size were reasonable or if it could be overridden using !important.

Are all KDE users blind or something? Suggestions?

- John



5+ Year Member

Msg#: 3685025 posted 5:49 pm on Jun 27, 2008 (gmt 0)

Got k4 and k4.04 release15.1 (opensuse), both allow the font-size to be set, tried font-size:10px and 0.5em.
The k4.04 on is a brand new install of opensuse 11 with nothing changed.
Does the font-style choice make any difference?


WebmasterWorld Senior Member 5+ Year Member

Msg#: 3685025 posted 7:46 pm on Jun 27, 2008 (gmt 0)

I assume the 7 font size is 7pt? (how 7pt turns into 16px is pretty unlikely though) having a minimum font size in points kind of makes sense though, since users have different resolutions and monitors, making the minimum size a PHYSICAL measurement, is pretty logical.

Firefox has the same feature though. I have my minimum font size set to 16px because my screen resolution is huge. Some users on 800x600 screens will think 14px is big, but for those on 2048x1536, even 16px will be small to them. I do not want my eyes strained.
You should never have to force a user to shrink their font sizes. Your text containers should always be scalable, by leaving them with default sizes, or if you must supply a width/height, use EMs, which scale with the text size.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved