Page 1 of 1

Setting-content

Posted: 05 Apr 2016, 16:16
by MS-POWER
Dear
why in content I could not change background of text by using html attributes?

Re: Setting-content

Posted: 06 Apr 2016, 00:23
by mjau-mjau
MS-POWER wrote:why in content I could not change background of text by using html attributes?
What do you mean "background of text"? There is no way to change background of text from html attributes, but perhaps you mean CSS?

You can set background of text for example like this:
Code
Text with <span style="background-color:yellow">yellow background</span>.

Re: Setting-content

Posted: 06 Apr 2016, 07:41
by MS-POWER
thanks
this good , but I need to change page background behind the text only as a box same as attached photo and not behind text only or the full page.

regards

Re: Setting-content

Posted: 06 Apr 2016, 11:33
by mjau-mjau
Well, Im really not sure what this has to do with X3 then ... but all this is basically web design, that requires CSS. Rounded corners also. I took the time to create some examples for you:

Text with green background:
Code
<span style="display: inline-block; background: green;">Hello</span>
Text with green background and rounded corners:
Code
<span style="display: inline-block; background: green; border-radius: 5px;">Hello</span>
Text with green background, rounded corners and more padding:
Code
<span style="display: inline-block; background: green; border-radius: 5px; padding: 1em;">Hello</span>

Re: Setting-content

Posted: 06 Apr 2016, 16:19
by MS-POWER