Some way to center [image]?

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Posts: 204
Joined: September 10th, 2010, 9:49 pm

Some way to center [image]?

Post by Neuromancer » August 10th, 2011, 4:37 pm

Is there some way to center the image used in the story parts regardless of the screen resolution?

User avatar
Posts: 1008
Joined: August 11th, 2011, 9:25 pm
Location: Germany

Re: Some way to center [image]?

Post by Heindal » August 12th, 2011, 11:20 pm

As nobody seems to reply. I would like to know that too. At least how to use a WML to make this.

However i can offer you a solution - you could add transparent borders to your picture.
I know its not the top solution, but it might help.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses

User avatar
Art Contributor
Posts: 782
Joined: April 23rd, 2010, 8:17 pm
Location: Canada

Re: Some way to center [image]?

Post by Alarantalara » August 12th, 2011, 11:56 pm

All images in the story parts specified with background are already centered so you don't need to do anything.

All images in the story part specified with image are relative to the background image, and you know what size it is, so if you center your image on the background image with centered=yes, then the image should still be centered afterward.

Post Reply