Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

CSS fieldset attributes

SpaceshipSpaceship
SpaceshipSpaceship
NamecheapNamecheap
Watch

Alex.

Account Closed
Impact
5
In my site, I have the CSS:
Code:
fieldset{

	border: 1px solid #FFFFFF;
	width: 10em;	 
	padding: 2px 6px;
}

legend{
	color: #FFFFFF;
	background: #000000;
	border: 1px solid #FFFFFF;
	padding: 2px 6px;
}

I want to edit this to allow multiple, different class's of fieldset, but when I tried it:
Code:
fieldset.leftcolumn{

	border: 1px solid #FFFFFF;
	width: 10em;	 
	padding: 2px 6px;
}

legend.leftColumn{
	color: #FFFFFF;
	background: #000000;
	border: 1px solid #FFFFFF;
	padding: 2px 6px;
}

The result came up exactly as before....
What am I doing wrong??

EDIT: I had also changed the fieldset tag to the 'class' and it doesn't work
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Is there a reason you have a lowercase 'c' in the class name of fieldset and an uppercase one for legend?

Also, it might help to see an example of the HTML code you'll be applying the stylesheet to.
 
0
Close
Jim_ said:
Is there a reason you have a lowercase 'c' in the class name of fieldset and an uppercase one for legend?

Also, it might help to see an example of the HTML code you'll be applying the stylesheet to.

O.o I totally missed that, thanks for pointing it out.
 
Last edited:
0
Close
Okay. Make sure that your classes come after your defaults.
fieldset { }
legend { }
fieldset.class { }
legend.class { }
​
not
fieldset.class { }
legend.class { }
fieldset { }
legend { }
​
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back