On Wed, Apr 16, 2008 at 8:42 AM, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> I'm trying to set it up so that all checkboxes on my site have a > margin or padding to the right. In my main css, I thought I could > address the element and tried: > checkbox {margin-right:40px; padding-right:40px;} > > It didn't work. If I made it into a class, it then worked but I > would have to insert it into each checkbox rather than doing one > sitewide setup. > > So how would I get that to work? And if not, do I actually have to > put a class on every single checkbox? I currently have it in a ul/li > but I removed it from there and still couldn't get it to work. > > thank you. > > -- > > Daniel Kessler > Others may have a better idea, but since I can't see an exact example if give a better answer, I'll go with this: Checkboxes are of type "input" first of all. If your lists have classes, you can try something like: ul.classname input{} But that will go for any input. You can try aiming for atrribute selectors, too, although I believe that doesn't work in IE6 or <: input[type=checkbox] Anyone correct me if I'm off here. -Jack Timmons ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/