inherit
189160
0
Dec 18, 2015 21:41:54 GMT -8
Fanfreakingtastic
23
January 2013
nadiakit
|
Post by Fanfreakingtastic on Apr 22, 2013 14:45:12 GMT -8
Alright, On side Side tables on my V.5 site, the pictures are not centering what so ever. They are leaving to the far right of the table and I was wondering if I am doing something wrong or if there is a code error. Help please. Thanks. Site Link
|
|
inherit
153300
0
Jun 19, 2019 17:10:20 GMT -8
Tressa
874
April 2010
tressa
|
Post by Tressa on Apr 22, 2013 15:55:43 GMT -8
If I'm seeing things right, your sidebar is set to a width of 199px, your pictures are 200px wide, and there is padding (not sure what width) in the sidebar as well. To have the same blank space on both sides of the pictures you can either make the width of the sidebar just a few px wider, or add a width to the picture to make it fit into the width you have now. Adjust that width to what works best for you.
<a href="your link"><img src="image link" width="195" alt="whatever"></a>
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Apr 22, 2013 16:48:26 GMT -8
Alternatively, you could set a negative margin on the images. The images are being moved over because there is 5px of padding (invisible space) in the sidebar boxes. Using a negative margin will essentially say to move them over so that they take up the specified amount of space. For reference, a positive margin will say that a certain amount of space should be left on the outside of an element; padding will add space on the inside. Adding this to the header or footer of the sidebar plugin should do the trick: <style type="text/css">#sidebarr-left .content img {margin-left: -5px;}</style> Have a read of this article for a good explanation of how margins/padding/etc work.
|
|
inherit
189160
0
Dec 18, 2015 21:41:54 GMT -8
Fanfreakingtastic
23
January 2013
nadiakit
|
Post by Fanfreakingtastic on Apr 22, 2013 17:02:48 GMT -8
Thank you both so much, that helped out a lot!
|
|