WatchNon-threaded

Forums » Advanced Editor Forum » Read Thread

Talk about it. Ask for help on it. Compliment it.

Centering an image?

6 months ago

How do I center my image in the advanced editor? Tried <p style="text-align:center">[myimage]</p> but upon "save changes" it just removes it and makes it a basic paragraph.

Centering an image?

6 months ago
You are trying too hard.

[center]
[/center]

Replace the brackets with <>

Centering an image?

6 months ago

Lol

Centering an image?

3 months ago

I tried that and I can't get it to work.

 

$PAGETEXT := "<center>

     body { background: url('https://chooseyourstory.com/resources/images/user/58745?58745');

}

</center>" + $PAGETEXT

I want to make my background one picture, but it keeps doing more than one. Or could you tell me how to make the background one color?

Centering an image?

3 months ago

$PAGETEXT := $PAGETEXT + "<center>  body {Background: url('https://chooseyourstory.com/resources/images/user/58745?58745')}</center>"

Centering an image?

3 months ago
^Basically, you got the order backwards.

Centering an image?

3 months ago

I copy and paste the code you send, but unfortunately, it did not work. The background was still white and part of the code ended up in the text where the story went.

Centering an image?

3 months ago
You need to turn off the RTE to use HTML I'm pretty sure.

Centering an image?

3 months ago

This might be a stupid question, but how do you do that? :-}

Centering an image?

3 months ago
Go into your profile and uncheck the box for the Rich Text Editor.

Centering an image?

3 months ago

Still didn't change anything

Centering an image?

3 months ago
The above code has Unicode characters in it, so it won't work with copy/paste. You will need to type it out yourself by hand or change the greater and less than signs back manually if you paste it in.

Also, I didn't really bug-check the code, just put it up there to show the proper order to use with $PAGETEXT...

Centering an image?

3 months ago

still multiply images of the same image instead of one.

Centering an image?

3 months ago
If they're setting a tiny image as the background (like one that was uploaded to the site instead of an actual image host) would this make it show up tiled by default?

Centering an image?

3 months ago

Speaking purely in terms of the CSS background property…

If you want your background not to repeat, add "no-repeat".

If you want your background be positioned in the center, add "center center".

If you want your background to scale to fit the available area, add "/ contain"; if you want it to scale to fill the area, add "/ cover". (If you're setting a scale, you have to include a position, followed by a slash, followed by the scale.)

e.g.

Centered only
Scaled to fit
Scaled to fill