CSS: input <--> radio buttons

They have: 10 posts

Joined: Feb 2002

I added background-color = #333333 to my css file, but now my radio buttons become grey... As my background is blue, I don't want that. Is there a way to overcome this?

Greetings from Belgium

nicora's picture

He has: 267 posts

Joined: Nov 2001

could you post you code please.

They have: 10 posts

Joined: Feb 2002

It's in fact the deviantNuke theme for phpNuke I'm changing. ( http://www.fcbfans.be/mirror ) It looks awful I know, just started to modify it Smiling

here's the line of css:

INPUT {FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE: 11px; color: #ffffff;
BACKGROUND-COLOR: #333333}
'

nicora's picture

He has: 267 posts

Joined: Nov 2001

That snipet is pretty general, it'll apply to any form object, maybe a specific class might work better?

.radio
{
background:#333333;
}

Just an idea...

They have: 10 posts

Joined: Feb 2002

The problem is there are lots of radio buttons, I don't really want to change that all. How would that line of css look like if I would only want to have text areas and input boxes grey, but radio buttons no background?

I'm a newbie... Like you "might" have noticed Smiling

nicora's picture

He has: 267 posts

Joined: Nov 2001

You arn't going to be able to do that, I don't believe. When you declare that all input's (INPUT{}) have grey backgrounds, all inputs have grey backgrounds.

You can work around it like this :

INPUT
{
background:#990000;
}

They have: 10 posts

Joined: Feb 2002

I'll check it out in the morning... Thanks!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.