| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Nov 2006 Location: Uk
Posts: 601
![]() | 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;
} ????: 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;
} 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.
|
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: NY, USA
Posts: 610
![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | THREAD STARTER #3 (permalink) | ||||
| Account Closed Join Date: Nov 2006 Location: Uk
Posts: 601
![]() |
Last edited by manofgames; 03-01-2007 at 04:58 AM.
| ||||
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: NY, USA
Posts: 610
![]() ![]() ![]() ![]() ![]() ![]() | Okay. Make sure that your classes come after your defaults. fieldset { }not fieldset.class { }
__________________ ask me about the internet |
| |