Reputation: 8103
Is there any way to write a CSS selector for this snippet, but without it applying to the <label>
compoenent? So that I can alter the text in the div, but the label is good where it is.
<div id="edit-cc" class="form-item form-type-item">
<label class="field" for="edit-cc">cc </label>
[email protected], [email protected], [email protected], [email protected], [email protected]
</div>
Upvotes: 0
Views: 218
Reputation: 92873
May be you can override
those properties which is inside your div
like this:
div{
color:green;
font-weight:bold;
font-size:14px;
}
div label{
color:red;
font-weight:normal;
font-size:18px;
}
Upvotes: 1
Reputation: 123438
the best way is to enclose all email address in one element (probably an unordered list is the most suitable tag for this purpose) but if you cannot modify the code just apply your rules to the div {}
and then revert them on div label {}
Upvotes: 3