Skip to main content
Known Participant
February 15, 2022
Question

Div styles not working

  • February 15, 2022
  • 2 replies
  • 265 views

After upgrading to RH 2020.7 I'm unable to apply div styles. Say you have a class looking like this:

div.my-style {
    font-size: 28px;
}

The style is visible in the style list but is not applied when picking it in the text editor. If I change the class to a span it works...

span.my-style {
    font-size: 28px;
}

 I had no issues with this prior the update.

    This topic has been closed for replies.

    2 replies

    Community Expert
    February 15, 2022

    The div functionality is a bit of a pain in RH and they seem to break it in a different way every release. I've found it easiest to go in to the code and write iin the div tag and class manually (since about RH8, to be honest).

     

    You can request features and report issues here: https://tracker.adobe.com/

     

    Post the item number in the discussion so people can easily vote if they want the same functionality.

    a_DavidAuthor
    Known Participant
    February 16, 2022

    Yeah, if I would be the one editing the content that's what I would do to but that's not the case. I'm designing the different styles for our editors. They are writers, not coders, so would like a eassy way for them to style up the content.

    I'm gonna report a issue, thanks. 

    Peter Grainge
    Community Expert
    Community Expert
    February 15, 2022

    It's a known issue long outstanding. If you change the span you have shown to div.my-style it will work.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    a_DavidAuthor
    Known Participant
    February 16, 2022

    Not sure I follow, if I use div.my-style it won't work?