Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, is there an easy way to remove the text style from a container? The goal is to let the container inherit the style from its parent container - basically what you get when you create a brand-new container. With text style I mean text color, font, font size, justification etc. Martin |
||||
|
Never tried this, but you could set the generated text style again and set erverything to "inherit". Not sure if it would work. |
||||
|
Well, yes, but how to "set to inherit" ? That is basically my original question. |
||||
|
Like for color: color: inherit
|
||||
|
Hi erik, not sure I understand what you mean. Are you talking about adding CSS code via the "Additional CSS Styles" dialog? That doesn't work for text properties as RC hard-codes text color in every SPAN. If that's not what you meant then please "explain like I'm 5" . I was more thinking about a way to set it to "inherit" in the RC user interface. For example for text color I can bring up the color dialog and enter "inherit" in the HTML field but it will be replaced by "CE8BFF" and I get a pink text. I guess RC was not designed for that kind of thing and slowly accepting that I have to set text properties manually everywhere. |
||||
|
Because of your post I became curious and tried it out, but I only was partially successful. When you right-click onto the container and see what code is generated for it, you'll see that it generates a style named for example "textstyle3" for the container. You can now overwrite it yourself using for example this: .textstyle3 { causing it to get the same font-family as the outer container. I did this with the command View -> HTML Code of page -> additional CSS styles. It works only for the font family in my test, not sure why not for the font-size. I probably don't know enough about CSS. |
||||
|
wrote: Well, yes, but how to "set to inherit" ? That is basically my original question. Hi Martin, It isn't possible using RC user interface. That is More or less a feature requested few months ago. The Rocket Cake team must be working on it... Maybe we have a surprise soon... Take a look on this: https://www.ambiera.com/forum.ph... |
|