Welcome to WebmasterWorld Guest from 54.211.136.250

Forum Moderators: not2easy

Message Too Old, No Replies

Konqueror 4: Can't override default min font-size: 16px!

All your fonts are belong to KHTML

   
10:26 am on Jun 27, 2008 (gmt 0)

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



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
font-size !important
font-size-adjust
line-height

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:49 pm on Jun 27, 2008 (gmt 0)

5+ Year Member



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?
7:46 pm on Jun 27, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.