www.django-cms.org css mistake

49 views
Skip to first unread message

Aaron Maupin

unread,
Feb 3, 2011, 1:23:02 PM2/3/11
to django-cms...@googlegroups.com

I couldn't find an email address to contact about this, so am posting it here.

The www.django-cms.org site doesn't set an explicit background color for the body element, so therefor browsers render the page background color as whatever the user has defined as their default background color.  I use light blue, for example.  The problem is that the page is clearly designed to use white as a background color.

Of course many users won't have changed their web browser's default setting (which is usually white) but those that have won't see the intended design.  Quite a few sites on the web have this problem.  (I've even seen this mistake on the homepages of web design companies, which is a nice way of letting me know immediately that I should trust my design work to another firm.)

Anyway, to fix this problem just add the following line to the CSS file:

body {background-color:#FFF}

Martin

unread,
Feb 3, 2011, 1:26:06 PM2/3/11
to django-cms...@googlegroups.com
Haha nice one! Thanks for the hint... gotta check all my customers' sites now, too ;)

Angelo Dini

unread,
Feb 4, 2011, 3:16:01 AM2/4/11
to django-cms...@googlegroups.com
its actually not a mistake than rather a feature of the browser. But for CI/CD reasons we set the default background to #fff.

thanks for the hint! Fixed for -cms and -shop

Tribaal

unread,
Feb 4, 2011, 3:31:08 AM2/4/11
to django-cms...@googlegroups.com
Thanks Angelo :)
(Also thanks for the shop ;) )

Aaron Maupin

unread,
Feb 4, 2011, 10:44:37 AM2/4/11
to django-cms...@googlegroups.com
> On Fri, Feb 4, 2011 at 9:16 AM, Angelo Dini <atra...@gmail.com> wrote:
>> its actually not a mistake than rather a feature of the browser. But for
>> CI/CD reasons we set the default background to #fff.

Looks good! Thanks!

Sure it's a mistake. ;P CSS standards define the initial background
color as transparent, not white. So when you don't set one you see
through to whatever the browser's base background color is. It's just
that only those of us who read a lot of text files change the default
background color to something other than white...

Reply all
Reply to author
Forward
0 new messages