[Owncloud] CSS: use px, not em

Drew Hornbein dhornbein at gmail.com
Wed Dec 5 15:15:10 UTC 2012


hi everyone, I've been lurking here for a while.

If you have any intention to make owncloud responsive going with em and rem
is the right choice.


On Wed, Dec 5, 2012 at 9:32 AM, Bernhard Posselt <nukeawhale at gmail.com>wrote:

> 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/<http://www.alistapart.com/articles/love-the-boring-bits-of-css/>
>>
>>
> ______________________________**_________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20121205/5cd3039b/attachment.html>


More information about the Owncloud mailing list