You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Centering a widget in the Feature area

UserPost

6:47 pm
March 20, 2009


codysan

Member

posts 18

1

Hello again . . .

I have a widget in the top feature area that displays the following:

I know it's a little hard to see, but I'm using one column and I'd like to get those gallery thumbnails to center somehow.

The widget is generated by a plug-in called  NextGEN Gallery and being off center looks kind of tacky.

Any advice would be greatly appreciated.

Thanks

8:40 pm
March 20, 2009


Ryan

Admin

posts 1523

2

NextGen looks great in the feature area.  One way you can do it is just add a little bit of CSS to the style.php file that actually just spreads the images out across the feature area.  If you are using a consistent number of images, like 10 in the screenshot, then just add something like this in the style.php:

#feature img { margin-right:3px; }

Then after adding that at the very end of the style.php file, save it, go into your theme settings and click a "Save changes" button. That will rewrite the stylesheet.

Preview your blog and see if the images space correctly.  You'll need to adjust the '3px' value to get it spaced correctly, just try 2 or 4 or whatever works.  As long as you keep 10 images at the same thumbnail size it will look good.

9:01 pm
March 20, 2009


codysan

Member

posts 18

3

Thanks . . . I did that and tweaked the padding of the feature box and it looks great. My site is still in the alpha stages, but when you've got a minute check it out at http://www.zookinimusic.com. I still have to add real content and I'm not happy with the way the calendar looks in the side bar and I still can't decide what the color of links should be in various places. Preferable, I'd like to keep them all the same, throughout the site.

Any tips would be greatly appreciated.

9:32 pm
March 20, 2009


Ryan

Admin

posts 1523

4

Hey, it looks great!  Very classy look.  I even like how you styled the footer by removing the background color but left the footer feature area in to create a gap between the content and the footer.  Personally, I think the calendar looks good that way.  It really goes well with the rest of the blog.

Nice work!

9:59 pm
March 20, 2009


codysan

Member

posts 18

5

Thanks, Ryan . . .

I really appreciate all the hard work and time that you must have put into creating this theme concept. I've tried a dozen themes, both free themes and premium and F2 has em all beat hands down. The coolest thing is if I get bored with this theme, a couple of months from now, I can tweak it into something totally different, in a relatively short time.

6:26 am
March 21, 2009


Ryan

Admin

posts 1523

6

And that was the point of creating the theme, just to give the average blogger the ability to tweak their own theme as they wish. There are imitators out there now, but there's only one Flexibility!

9:19 am
March 21, 2009


codysan

Member

posts 18

7

Well, ya done real good. I have a few other questions . . . is there any way to increase the amount of space between the sidebar and the posts area? Can I change the left margin or the left padding of the sidebar or the right margin/padding of the posts? I'm assuming I'd have to edit style.php, but I'm not sure which tags to look for.

Thanks . . . PC

11:07 am
March 21, 2009


Ryan

Admin

posts 1523

8

You are correct on the style.php.  The padding between posts and sidebar is a little tricky because the widths of both are calculated in the style.php file based on your theme settings for the content width.  You'll see calculations like this:  $sidebar = $flex_blog_width – $flex_content_width – 15;

It's really kind of complicated to explain all the styles used to set the padding and margins, but if you have Firefox, you can download the Web Developer add-on and that allows you to see which CSS element is currently highlighted. Then you can look in the style.php file for the appropriate styles.

9:18 pm
March 22, 2009


codysan

Member

posts 18

9

Thanks, Ryan . . . I'll give that a try.