Odd Layout of g2_sidebargridblock
clarkburbidge
Joined: 2006-11-22
Posts: 6 |
Posted: Wed, 2007-10-10 05:31 | |||
My sidebar block always throws one of the images out to the side. See attached image... Any ideas on why it does this?
|
||||
Posts: 62
Well it shouldn't... lol... Can we see a link or some source code?
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/
Posts: 6
Link: www.clarkburbidge.com
Code:
I tried killin the 'flickr' devs but that just removed the nice looking frames and didn't fix the space.
I also originally used just g2_sidebargridblock(randomImage) without the other values. Still the odd space.
Thanks so much for the look-see. I can't count the times I've been ignored on a message board.
Posts: 492
You need to add this to style.css:
It's the text-align: justify; in the body that's doing it.
See this thread for some pointers on using Firebug to find solutions to CSS problems like this.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 62
The Captain is right on the money. Adding this should also work... And should only affect the images in the sidebar grid...
#flickr .wpg2sidebargrid-image img {
display:inline;
margin: 0px;
padding: 2px;
text-align:left;
}
---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/
Posts: 6
Thank you for the response!
I used both solutions and they didn't seem to help.
As I investigated further it looks like the problem was the width of the box that was just too narrow for 3 pics but too wide for two. I narrowed that width and it looks better.
Thanks again for the help!