Having fun with IE - part 2: CSS inheritance

By crisp on Wednesday 29 November 2006 14:09
Category: Browsers, Views: 829

Part 2 of this serie; today: CSS inheritance through script.

"Don't touch my inheritance!"

HTML:
1
2
3
4
<p id="foo">whatever</p>
<script type="text/javascript">
  document.getElementById('foo').style.fontSize = 'inherit'// error
</script>

Volgende: About the cube 01-12
Volgende: Beware of premature optimization 28-11

Comments

There are no comments for this post


Comment form
(required)
(required, but will not be displayed)
(optional)

Please enter the characters you see in the image below: