Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS priority of external stylesheets Re: priority of external stylesheets

#129214
Paulie_D
Member

There is no height property in the second class that you gave

If the height is different use a different class…don’t chain them unnecessarily. Although, **generally** the content should set the height.

If you are repeating styles then find a way of reducing that.

You need a hidden div centered div (although I wouldn’t) then give that a class of it’s own and apply it to both divs.

.hidden-center {
display:none;
margin:0 auto;
}

then do

.talkNowOptions {
height:320px;
width: 980px;
}

.talkNowEnterSerialScreen {
width: 850px;
}

You will still apply two classes to the divs but the classes now do two separate things and your code is a lot neater and more compact.