Jump to content

Archived

This topic is now archived and is closed to further replies.

jmad

Better Way to write this or consolidate

Recommended Posts

jmad
Want the highlight box to have bottom padding of 50px and the text size of highlight-head and highlight-sub head to be 80 and 25.  Then I'm using @media to change the size.  This code works using on these classes but since I'm still new to CSS is there a better way to write this code?
 
.highlight-padding{
  padding-bottom: 50px;
}
 
.highlight-font-size .highlight-head{
  font-size: 80px;
}
 
.highlight-subhead-font-size .highlight-subhead{
  font-size: 25px;
}

Share this post


Link to post
Share on other sites

×