The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Widget photo not centered.

View previous topic View next topic Go down

Solved Widget photo not centered.

Post by Castellana on July 15th 2013, 4:39 pm

Hello! Hello

With help from Seth on here I made a widget for my forum yesterday.
Its the one that says "Explore Aquatic Plants" in the left column, here:
http://cvas.forumotion.com/portal

It works perfectly but the image does not fill the box - that is there is more blue border on one side than the other. How can I fix this so that the image has an equal border all around?

This is the code of the widget:
<a href="http://cvas.forumotion.com/f2-plants" title="Go to Plants Library" target="_blank"><img src="http://illiweb.com/fa/pbucket.gif" alt="Plants"/></a>

Thanks!
avatar
Castellana
Forumember

Female Posts : 282
Reputation : 5
Language : english

http://cvas.forumotion.com/portal

Back to top Go down

Solved Re: Widget photo not centered.

Post by Kralj on July 15th 2013, 4:57 pm

If you want to set picture in center try this:

<div style="margin:auto;text-align:center;width:100%">TEXT</div>

example:
Code:
<div style="margin:auto;text-align:center;width:100%"><a href="http://cvas.forumotion.com/f2-plants" title="Go to Plants Library" target="_blank"><img src="http://illiweb.com/fa/pbucket.gif" alt="Plants"/></a></div>

avatar
Kralj
Forumember

Male Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia

Back to top Go down

Solved Re: Widget photo not centered.

Post by Castellana on July 15th 2013, 5:52 pm

Thanks, Kralj! Very Happy

That is just what I need!
This is solved.
avatar
Castellana
Forumember

Female Posts : 282
Reputation : 5
Language : english

http://cvas.forumotion.com/portal

Back to top Go down

Solved Re: Widget photo not centered.

Post by Kralj on July 15th 2013, 6:43 pm

You welcome Smile
avatar
Kralj
Forumember

Male Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia

Back to top Go down

Solved Re: Widget photo not centered.

Post by SLGray on July 15th 2013, 9:01 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39671
Reputation : 2678
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum