[Owncloud] CSS: use px, not em
Jan-Christoph Borchardt
hey at jancborchardt.net
Wed Dec 5 17:24:45 UTC 2012
Please see my previous email: em and rem have nothing to do with
responsiveness, in regards to that px behave exactly the same, namely
relative. I just checked back on a recent project, also responsive – there
I even mixed em and px.
Also see the Bootstrap interface library, it uses px and is probably the
baseline for many responsive websites recently:
http://twitter.github.com/bootstrap
Please correct me if I missed something, I really don’t want to drive
something forward which will bite us in the future. But please with proof –
the comments about px not working properly with different resolutions or
not being responsive are simply not true, it’s a relative unit just like em
(despite the misleading name).
On Wed, Dec 5, 2012 at 4:15 PM, Drew Hornbein <dhornbein at gmail.com> wrote:
> 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>
>>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20121205/d5a4503a/attachment.html>
More information about the Owncloud
mailing list