473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Style Sheet With Black Background

How do I create a style sheet with black background and white text?
Jul 20 '05 #1
12 19141
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
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
"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
"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
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
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
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
"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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
9
by: lkrubner | last post by:
How do I get all the div's on a page? I realize in IE I can use document.all. For the other browsers, I need to get an array of all the divs on the page. getElementByTagName()?????
2
by: alex bazan | last post by:
Is it possible to retrieve a property from a defined style in a style sheet? for example, if i have: <style> .mystyle {background-color:#ff0000} </style> how can retrieve the background...
33
by: amerar | last post by:
Hi All, I can make a page using a style sheet, no problem there. However, if I make an email and send it out to my list, Yahoo & Hotmail totally ignore the style tags. It looks fine in...
1
by: Roy | last post by:
Hey all. All I'm trying to do is get a darn double solid bar in my datagrid footer. Doesn't seem to work. Any tips? The weird thing is all the other stylesheet attributes work. If I increase the...
1
by: Warren Machanik | last post by:
I am having problems with applying a style on a style sheet. I have created a div and created a class. In the style sheet file I did the following: div.TopBar { background: Silver...
2
by: Warren Machanik | last post by:
I am a relative newbee I am having problems with applying a style on a style sheet. I have created a div and created a class. In the style sheet file I did the following: "div.TopBar {...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
2
by: vinpkl | last post by:
hi all i have two column div structure in which i have applied black background colour to the main div which holds the two columns (left and right divs). In internet explorer 7 the structure...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.