View Single Post
  #2 (permalink)  
Old January 3rd, 2016, 09:35 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

I am experiencing the same thing. I have tried changing fonts and can find none that will apply italic when the element is assigned to the class using the className property.

divAdvert.style.fontStyle = "italic"; displays the arial text in italic just fine. The text-decoration portion of the new-style class works, and if I add things like color: green, etc., it applies them as well. I also tried changing fontStyle to oblique instead of italic. There was no difference.

I created a heading and directly assigned it to the new-style class -- it displayed in underlined arial italic as expected.

Have you found an answer yet, snowcrasher555? I suspect we will not get one here, this board seems pretty deserted. Perhaps this should be asked elsewhere.
Reply With Quote
The Following User Says Thank You to Moby For This Useful Post:
snowcrasher555 (January 3rd, 2016)