NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page CSS fieldset attributes

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-28-2007, 09:26 AM THREAD STARTER               #1 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education

CSS fieldset attributes


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:
????: NamePros.com http://www.namepros.com/programming/299635-css-fieldset-attributes.html
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 by manofgames; 02-28-2007 at 09:29 AM.
Alex. is offline  
Old 02-28-2007, 12:59 PM   #2 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
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.
__________________
ask me about the internet
Jim_ is offline  
Old 02-28-2007, 01:37 PM THREAD STARTER               #3 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education
Originally Posted by Jim_
Is there a reason you have a lowercase 'c' in the class name of fieldset and an uppercase one for legend?
????: NamePros.com http://www.namepros.com/showthread.php?t=299635

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 by manofgames; 03-01-2007 at 04:58 AM.
Alex. is offline  
Old 02-28-2007, 05:40 PM   #4 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Okay. Make sure that your classes come after your defaults.
fieldset { }
legend { }
fieldset.class { }
legend.class { }
not
fieldset.class { }
legend.class { }
fieldset { }
legend { }
__________________
ask me about the internet
Jim_ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:30 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger