Sam,
Thanks for the advice .. I will remember that, and I've renamed the class to
eliminate the numeral.
Robin
On Jun 16, 2011, at 8:21 PM, Sam Brown wrote:
> Thursday, June 16, 2011, 11:09:41 PM, Robin wrote:
>
> RB> I then wrote css as follows:
>
> RB> .2col#content { /*this selector overrides the normal content
> RB> margins for any layout with no right side column */
> RB> margin: 0 0 0 200px;
> RB>
> RB> }
>
> RB> .2col#wrapper {
> RB> background: #fff
> RB> url(../images/website/wrapper_bg_2col.gif) repeat-y;/*creates faux
> RB> column appearance for two-column layout*/
> RB>
> RB>
> RB> }
>
> You should try to avoid class or ID names that begin with a numeral. It's
> best practice to begin them with an alphabetic character. If you really
> needed to keep the numeral, you could try escaping it:
>
> .\2col#wrapper {..}
>
> But that's just covering up the problem.
>
> Good luck!
> -Sam
>
______________________________________________________________________
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/