Web Hosting CSS & Stylesheet Forums

Add Me

User Name
Password
Go Back   CSS & Stylesheet Forums > CSS Forumz: Main > CSS Dev

Welcome to the CSS & Stylesheet Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: ,



Reply
  #1 (permalink)  
Old 04-13-2008, 12:38 AM
Big Dog
Guest
 
Posts: n/a
Diggs:
Default css referencing



Hi All,

Can anyone tell me if it's possible to accomplish the following:

a {
background:black;
--

b {
background:blue;
--

c {
background:green;
--

a,b,c {
color: white;
--


In a format such as:

a {
background:black;
color : foreground;
--

b {
background:blue;
color : foreground;
--

c {
background:green;
color : foreground;
--

foreground {
color: white;
--



TIA

~ Big Dog



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Reply With Quote


Sponsored Links
  #2 (permalink)  
Old 04-13-2008, 12:38 AM
Jim Palsgrove
Guest
 
Posts: n/a
Diggs:
Default Re: css referencing

Big Dog wrote:
> Hi All,
>
> Can anyone tell me if it's possible to accomplish the following:
>
> a {
> background:black;
> --
>
> b {
> background:blue;
> --
>
> c {
> background:green;
> --
>
> a,b,c {
> color: white;
> --
>
>
> In a format such as:
>
> a {
> background:black;
> color : foreground;
> --
>
> b {
> background:blue;
> color : foreground;
> --
>
> c {
> background:green;
> color : foreground;
> --
>
> foreground {
> color: white;
> --
>
>
>
> TIA
>
> ~ Big Dog
>
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com

As far as I know no you can't. The format would be more like;
a { background-color: black;
the foreground color would be
color: white;
--

b {
background-color: blue;
color: white;
--

c {
background-color: green;
color: white;
--

and the foreground col0or would be color: white;

as in

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

This would give a black background with white text. I don't know if this
is what you are looking for.
Reply With Quote


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:25 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.




Inactive Reminders By Mished.co.uk