Copy link to clipboard
Copied
I have a style called cmdname and I created a definition in my style sheet for this style:
cmdname {
font-size: 11pt;
font-family: Arial, sans-serif;
font-weight: bold;
font-variant: small-caps;
}
I applied the style sheet to all of my topics, but the style is not "active" for the words that are marked as cmdname. How can I make this happen without changing each cmdname individually?
Thanks,
Deb
Hi,
What kind of element are you targeting? For a paragraph, make it p.cmdname. For a span, make it span.cmdname. For a hyperlink, make it a.cmdname. For targeting all kinds of element, simply make it .cmdname.
As it is now, the browser expects an element with the name 'cmdname' and will style that element. This element doesn't exist in html, so your style will never be applied.
Greet,
Willam
Copy link to clipboard
Copied
Hi,
What kind of element are you targeting? For a paragraph, make it p.cmdname. For a span, make it span.cmdname. For a hyperlink, make it a.cmdname. For targeting all kinds of element, simply make it .cmdname.
As it is now, the browser expects an element with the name 'cmdname' and will style that element. This element doesn't exist in html, so your style will never be applied.
Greet,
Willam
Copy link to clipboard
Copied
I don't understand. Do you mean that in my style sheet where I have the definition of cmdname, it should be listed as span.cmdname if I'm using it for s
pan?
Copy link to clipboard
Copied
Thanks! Changed the definition in the style sheet and it worked!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now