Hi,
It's interesting if it is possible to use CSS rules for styling child
elements inline? What I mean is if there is a way to apply CSS rules
like this:
<ul style="li{ margin: 0; }"<!-- NOT SURE if it is possible in some
way -->
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ul>
I would like to apply some styles for child elements inline just like
we can do this as usual:
<style type="text/css">
li{margin: 0;}
</style>
Thank you.
It's interesting if it is possible to use CSS rules for styling child
elements inline? What I mean is if there is a way to apply CSS rules
like this:
<ul style="li{ margin: 0; }"<!-- NOT SURE if it is possible in some
way -->
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ul>
I would like to apply some styles for child elements inline just like
we can do this as usual:
<style type="text/css">
li{margin: 0;}
</style>
Thank you.
Comment