![]() |
|
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: 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 |
| Sponsored Links |
|
|||
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
- Contact Us
-|-
CSS & Stylesheet Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise