I can use the following CSS to make something happen if the width of the browser is less than 800 pixels.
@media only screen and (max-width : 800px)
{
#content
{
width: auto;
}
}
Is there a way to make some kind of CSS happen to a specific element if the height of that particular element is greater than a certain value?
My goal is to have a special CSS trigger if the content of the elements starts to wrap due to the browser width being too narrow, regardless of the hard-coded maximum width.
More specific example.
<h2>Long title followed by <span class="subtitle">a subtitle</span></h2>
.subtitle
{
margin-left: .7em;
font-size: .6em;
}
@media only screen and (max-width : 600px)
{
.subtitle
{
vertical-align: super;
&:before
{
content: '\A';
white-space: pre;
}
}
}
, .subtitle vertical-align: super, , . , , , , , , , , .