vote up 1 vote down
star

Don't assume my background color is white.

Can we change the default CSS so the background colour for the body element is specified explicitly.

flag

3 Answers

vote up 1 vote down

You can change the background color through Admin > Themes > Custom CSS to any color you like.

link|flag
1 
Only if you're an admin and you know to do so. This should be the default – Rich Seller Feb 8 at 20:10
vote up 1 vote down

Agreed, Stack Overflow et al have the background colour set. The default stylesheet should do the same.

body{background:#fff;color:#000;...

Currently the CSS for SE sites is as follows:

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td
{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
link|flag
vote up 1 vote down

I see this rule in the default stylesheet:

/* Default styles */
body {
    background: #ffffff;
    color: #555555;
}

Is this not showing up in your CSS?

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.