Jump to content

Why defind same class twice


Stephen68

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.