<class home>  <styles>   <back   next>

Styles

Conflicting Style Information:

What happens if your apply two conflicting styles to the same text.

For example:

p{ font-family: Helvetica; font-size: 12pt}

a{ font-family: Arial; font-size: 16pt}

Which font style would apply to the following?

<p>A man walked into a <a href="http://www.thebar.com>bar</a>.</p>


The rule is that the tag with the closest proximity wins. So, the font would be in Arial at 16pts.