[Owncloud] CSS: use px, not em

Bernhard Posselt nukeawhale at gmail.com
Wed Dec 5 14:32:32 UTC 2012


Wow thanks. rem looks awesome and would solve my current problems :)

On 12/05/2012 05:56 AM, Thomas Tanghus wrote:
> On Wednesday 05 December 2012 01:09 Jan-Christoph Borchardt wrote:
>> Just a short public service announcement concerning everyone who writes CSS
>> in ownCloud:
>>
>> Please only use px as values, no em anymore.
> Doesn't this go against what just about every (self-proclaimed?) css guru
> says?
>
> Wouldn't it be better to set a base font-size in the main style sheet, which
> would also solve font sizes being different when rendered in Gecko and WebKit,
> and then use rem instead of em? [*]
>
>> px are absolute and let us control everything much easier, while em are
>> relative to the font-size and are bound to make you very angry sooner or
>> later. You don’t need to change every em value to px right now, but when
>> you write new code or touch old one, please use px.
> But using pixel sizing also renders ownCloud impossible to use on e.g. retina
> displays. If we can adjust the base size based on which device is used, it
> will allow us to make it viewable on different form factors.
>
>> Thanks! (There are of course more things about the CSS which need to be
>> addressed, but going forward this is most important.)
> [*] http://www.alistapart.com/articles/love-the-boring-bits-of-css/
>




More information about the Owncloud mailing list