Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Styles


dingman - 6:23 am on Nov 5, 2002 (gmt 0)


How about defining that as a class, rather than a list of all the members of the class? Then add 'class="yourClassName"' as an attribute of all those elements. If you're already using the class attribute for left/right/center positioning, yout could still cut down the length of the selector to a list of three classes instead of all those IDs.


.yourClassName {
border:thin dashed #000;
background-color: #FFFFFF;
width: 150px;
}

or

.leftClass, .centerClass, .rightClass {
what's: the same;
about: all of them;
}

.leftClass {
how: left;
is: different;
}

etc.


Thread source:: http://www.webmasterworld.com/css/375.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com