Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Why do images appear only flush left in SilverStripe?


Go to End


3 Posts   1660 Views

Avatar
sjbmaine

Community Member, 17 Posts

17 September 2008 at 9:33am

Edited: 17/09/2008 9:37am

I've played with the demo on the silverstripe site and I've played with a couple of templates. They all seem to have this same problem. When inserting an image you are allowed to tell the image to align right with text wrap, but it doesn't work. Align center does not work either. The only thing that works is flush left. This is true in the text editor view and from the front end.

I've got to figure out how to get this to work properly. Any suggestions?

Avatar
Willr

Forum Moderator, 5523 Posts

17 September 2008 at 12:15pm

If you apply the 'Flush Right' to the image then view the source is there a 'right' class on the image? It could be 1 of 2 things - the CMS isnt saving the left/right class or there is no CSS styling to float it right on the front end

Avatar
sjbmaine

Community Member, 17 Posts

18 September 2008 at 1:13pm

You know, I finally pulled the code from your blackcandy style sheet and got it to work just fine. There must be something off in the template that I was using. Thank you for your time!