By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,199 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

Style Sheet With Black Background

P: n/a
How do I create a style sheet with black background and white text?
Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Penna Elabi <te*********@go.com> wrote in
<77**************************@posting.google.com >
How do I create a style sheet with black background and white text?


To create a web page with black background and white text, if you want to
have a site that looks like a pornographer's:

body{
background-color: black;
color: white;
}
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #2

P: n/a
PeterMcC wrote:
Penna Elabi <te*********@go.com> wrote in
<77**************************@posting.google.com >
How do I create a style sheet with black background and white text?


To create a web page with black background and white text, if you
want to have a site that looks like a pornographer's:

body{
background-color: black;
color: white;
}


It's wise to also set the link colors now. Or you might clash with the
user stylesheet and render text invisible.

Other ways to say "black" are #000 which also comes in quite handy for
shades of gray etc. (#333, #555) or white #fff. Well that's how I
mostly do it.
Jul 20 '05 #3

P: n/a
"Penna Elabi" <te*********@go.com> wrote in message
news:77**************************@posting.google.c om...
| How do I create a style sheet

(for a web-page)

| ..with black background and white text?

body
{
background-color: #000;
color: #fff;
}

.....or...

body
{
background-color: black;
color: white;
}

HTH

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Jul 20 '05 #4

P: n/a
"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:iA********************@wards.force9.net...
| Penna Elabi <te*********@go.com> wrote in
| <77**************************@posting.google.com >
.....
| To create a web page with black background and white text, if
you want to
| have a site that looks like a pornographer's:

http://www.1point1c.org/ I dunno...
I'd expect to see more 'pink', 'tan' and 'ebony' ;-)
Jul 20 '05 #5

P: n/a
Philipp Lenssen <in**@outer-court.com> wrote in
<bu************@ID-203055.news.uni-berlin.de>
PeterMcC wrote:
Penna Elabi <te*********@go.com> wrote in
<77**************************@posting.google.com >
How do I create a style sheet with black background and white text?


To create a web page with black background and white text, if you
want to have a site that looks like a pornographer's:

body{
background-color: black;
color: white;
}


It's wise to also set the link colors now. Or you might clash with the
user stylesheet and render text invisible.


If we're talking about what's wise, the OP should forget white reversed out
of black altogether.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #6

P: n/a
Andrew Thompson <an******@bigNOSPAMpond.com> wrote in
<mK*****************@news-server.bigpond.net.au>
"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:iA********************@wards.force9.net...
Penna Elabi <te*********@go.com> wrote in
<77**************************@posting.google.com >

....
To create a web page with black background and white text, if you
want to have a site that looks like a pornographer's:


http://www.1point1c.org/ I dunno...
I'd expect to see more 'pink', 'tan' and 'ebony' ;-)


Filth - "... right now you can enjoy 3D models of the stars." I didn't look,
of course, but I assume they're selling inflatable toys designed to look
like film personalities.

Disgusting.

:)

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #7

P: n/a
PeterMcC wrote:

If we're talking about what's wise, the OP should forget white
reversed out of black altogether.


Not that I'd use that color scheme. But why? If it's a hacking site or
something similar I believe it gets the point across fast, and the
contrast's also there.
Jul 20 '05 #8

P: n/a
"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:yX********************@wards.force9.net...
| Andrew Thompson <an******@bigNOSPAMpond.com> wrote in
| <mK*****************@news-server.bigpond.net.au>
....
| >> To create a web page with black background and white text,
if you
| >> want to have a site that looks like a pornographer's:
| >
| > http://www.1point1c.org/ I dunno...
| > I'd expect to see more 'pink', 'tan' and 'ebony' ;-)
|
| Filth - "... right now you can enjoy 3D models of the stars." I
didn't look,
| of course, but I assume they're selling inflatable toys
designed to look
| like film personalities.

ROTFL - great comeback!
Jul 20 '05 #9

P: n/a
Andrew Thompson wrote:
"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:iA********************@wards.force9.net...
| Penna Elabi <te*********@go.com> wrote in
| <77**************************@posting.google.com >
....
| To create a web page with black background and white text, if
you want to
| have a site that looks like a pornographer's:

http://www.1point1c.org/ I dunno...
I'd expect to see more 'pink', 'tan' and 'ebony' ;-)


How naive. Porn site'a don't actually have real flesh on them - well,
not much. Mostly just banner ads linked in a more convoluted way than a
maze in the original Adventure, with uncountable links into assorted
ploys to lure your credit card details out of you.

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #10

P: n/a
On Fri, 16 Jan 2004 12:28:51 -0000, PeterMcC <pe***@mccourt.org.uk> wrote:
If we're talking about what's wise, the OP should forget white reversed
out
of black altogether.


Reasons?

I agree it was unwise to do white-on-black before the advent of user-side
CSS - solely on an accessibility issue - but CSS2 allows the user to
override even !important author style suggestions.
Jul 20 '05 #11

P: n/a
"Philipp Lenssen" <in**@outer-court.com> wrote in message news:<bu************@ID-203055.news.uni-berlin.de>...
PeterMcC wrote:
If we're talking about what's wise, the OP should forget white
reversed out of black altogether.


Not that I'd use that color scheme. But why? If it's a hacking site or
something similar I believe it gets the point across fast, and the
contrast's also there.


Someone asked in google.public.support.general how to make the
background color in google.com darker and I thought one option would
be to create a style sheet and use it in Internet Explorer -> Tools ->
Internet Options -> Accessibility -> Format documents using my style
sheet, but that doesn't seem to work.

http://groups.google.com/groups?hl=e...ing.google.com
Jul 20 '05 #12

P: n/a
Penna Elabi wrote on 17 jan 2004 in
comp.infosystems.www.authoring.stylesheets:
Someone asked in google.public.support.general how to make the
background color in google.com darker and I thought one option would
be to create a style sheet and use it in Internet Explorer -> Tools ->
Internet Options -> Accessibility -> Format documents using my style
sheet, but that doesn't seem to work.


Try this favelet:

<http://devrijehuisarts.org/test/GGbgDarker.asp>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.