Previous Message
Next Message

What can I do to improve this CSS?

Sent by Gunlaug_Sørtun on 12 April 2009 16:04


trevor bayliss wrote:

> http://tinyurl.com/clg668
> 
> I would be very greatful if someone could have a look and advise me 
> what to do, Thank you, Regards, Trev

Apply some shorthand and combined selectors, maybe, to reduce the amount
of redundant styling. For instance...

..nav {
padding-right : 0;
padding-left : 0;
padding-bottom : 0;
margin : 0;
padding-top : 0;
list-style-type : none;
}
..nav * {
padding-right : 0;
padding-left : 0;
padding-bottom : 0;
margin : 0;
padding-top : 0;
list-style-type : none;
}

....can be shortened to...

..nav, .nav * {
padding: 0;
margin : 0;
list-style-type : none;
}

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: