Dynadot — .com Registration $8.99

CSS fieldset attributes

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
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
•••
Okay. Make sure that your classes come after your defaults.
fieldset { }
legend { }
fieldset.class { }
legend.class { }
not
fieldset.class { }
legend.class { }
fieldset { }
legend { }
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back