View Single Post
  #3 (permalink)  
Old January 3rd, 2016, 09:58 PM
Moby Moby is offline
Authorized User
Points: 134, Level: 2
Points: 134, Level: 2 Points: 134, Level: 2 Points: 134, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2015
Location: the sea
Posts: 10
Thanks: 4
Thanked 5 Times in 4 Posts
Default

Okay, I have figured it out!
When I move font: 12pt arial into the .newstyle section of the CSS, it works fine. font is a shorthand CSS property, and any unspecified properties are the default, so font-style is being set to normal and the id (divAdvert) style is being given precedence over the class (new-style), as should be expected.

Changing the specifications of #divAdvert from font: 12pt arial; to font-family: arial; and font-size: 12pt; does not set a font-style, so the text displays in italic as intended.
Reply With Quote
The Following User Says Thank You to Moby For This Useful Post:
snowcrasher555 (January 3rd, 2016)