The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Widget photo not centered.

3 posters

Go down

Solved Widget photo not centered.

Post by Castellana 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="https://2img.net/h/i76.photobucket.com/albums/j12/dclaro/Plants%20Gallery/tiny10G10368FRMMP_zps66d464ca.jpg" alt="Plants"/></a> 

Thanks!
Castellana
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 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://i76.photobucket.com/albums/j12/dclaro/Plants%20Gallery/tiny10G10368FRMMP_zps66d464ca.jpg" alt="Plants"/></a></div>

Kralj
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 July 15th 2013, 5:52 pm

Thanks, Kralj! Very Happy

That is just what I need!
This is solved.
Castellana
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 July 15th 2013, 6:43 pm

You welcome Smile
Kralj
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 July 15th 2013, 9:01 pm

Topic Solved & Locked


Widget photo not centered. Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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