Search…

X3 Photo Gallery Support Forums

Search…
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Setting-content

05 Apr 2016, 16:16

Dear
why in content I could not change background of text by using html attributes?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Setting-content

06 Apr 2016, 00:23

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>.
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Setting-content

06 Apr 2016, 07:41

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
Attachments
example.jpg
example.jpg (31.33 KiB) Viewed 2858 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Setting-content

06 Apr 2016, 11:33

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>
 
MS-POWER
Experienced
Topic Author
Posts: 38
Joined: 16 Mar 2016, 14:41

Re: Setting-content

06 Apr 2016, 16:19