Stephen68 Posted December 29, 2007 Share Posted December 29, 2007 Not sure if I'm reading into this right or not but I looked at some code where they defined values for a class twice. Not sure if this is common practice or not, can anybody let me know. Here is a sample of what I mean First they have it here .water_bar, .blue_head_full, .blue_head_center, .blue_foot_center, .blue_head_filler { font-size: 8pt; height: 4.5ex; line-height:4.5ex; vertical-align: middle; text-align:left; } and then later on they put something like this later on in the page .blue_head_full { text-align:center; position:absolute; top:0px; left:0px; width:100%; border-top: 1px solid white; } Is this just to set values that are the same in all of those classes at once? Will to still keep the first set of values after redefining the class again? Sorry if this seems really silly but I just wanted to know, I can see I guess that it would save some typing for sure. Stephen Quote Link to comment Share on other sites More sharing options...
dropfaith Posted December 29, 2007 Share Posted December 29, 2007 ive done this a few times to save time yea like all the values are the same except for one. ill do it then have the one value defined elsewhere.. but the fact that text-align center and text-align left are used to define the same element is odd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.