[wp-testers] Galley Thumbnail Spacing Issues

Alexander Beutl xel at netgra.de
Sun Apr 27 21:44:34 GMT 2008


sure you can do this too:
.gallery-item{
width: auto !important;
}

anyway: You can remove the stuff via a function in your template which would
be the better way I think...

2008/4/27, Daniel Schoonover <daniel at dangarion.com>:
>
> Hrm, didn't realize there was hardcoded CSS somewhere else other then the
> template like that.  Mine is different then yours.
>
> I changed mine to 33% to see what that did, and it appeared to do nothing.
> So then I just removed the whole width portion and that appears to have
> fixed it.
>
> That's going to be a little frustrating to remember.  Now isn't there a
> way
> to put that in my theme CSS to override the default template?
>
> -Thanks!
> Daniel
>
>
>         <style type='text/css'>
> >             .gallery {
> >                 margin: auto;
> >             }
> >             .gallery-item {
> >                 float: left;
> >                 margin-top: 10px;
> >                 text-align: center;
>
> >                 width: {$itemwidth}%;            }
>
> >             .gallery img {
> >                 border: 2px solid #cfcfcf;
> >             }
> >             .gallery-caption {
> >                 margin-left: 0;
> >             }
> >         </style>
> >
>
>
>
> > Message: 4
> > Date: Sun, 27 Apr 2008 09:36:54 +0200
> > From: "Alexander Beutl" <xel at netgra.de>
> > Subject: Re: [wp-testers] Galley Thumbnail Spacing Issues
> > To: wp-testers at lists.automattic.com
> > Message-ID:
> >        <663be1170804270036j94aad8k109811a061778d9f at mail.gmail.com>
> > Content-Type: text/plain; charset=UTF-8
>
> >
> > Nope you're wrong this time...
> >
> > The "width: 33%" messes this up this time.
> > You 'll find it not in the head but in front of the gallery.
> >
> > <style type='text/css'>
> > > .gallery {
> > > margin: auto;
> > > }
> > > .gallery-item {
> > > float: left;
> > > margin-top: 10px;
> > > text-align: center;
> > > width: 33%; }
> > > .gallery img {
> > > border: 2px solid #cfcfcf;
> > > }
> > > .gallery-caption {
> > > margin-left: 0;
> > > }
> > > </style>
> > >
> >
> > This code can be changed or deleted via the gallery_style Filter (you
> can
> > use that in the templates functions.php)
> > See wp-includes/media.php.
> >
> > 2008/4/26, Jennifer Hodgdon <yahgrp at poplarware.com>:
> > >
> > > Daniel Schoonover wrote:
> > >
> > > > I'm having some issues with the Gallery when I add a gallery to my
> > post.
> > > > The
> > > > spacing of the images is never correct. [...]
> > > >
> > >
> > > You should be able to fix this in the style.css file of your theme.
> From
> > > what I can see of those two examples, the issues are coming from your
> > > theme's CSS and not anything "hard-wired" in the gallery itself.
> > >
> > >    --Jennifer
> > >
> > > --
> > > Jennifer Hodgdon * Poplar ProductivityWare
> > > www.poplarware.com
> > >
> > > Drupal/WordPress Sites, Themes, Modules/Plugins
> > > Custom Web Programming, Web Databases
> > > Modeling/Analysis/Palm OS Software
> > >
> > > _______________________________________________
> > > wp-testers mailing list
> > > wp-testers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-testers
> > >
> >
> >
>
>
>
> --
> "Pain heals. Chicks dig scars. Glory... lasts forever..."
> Daniel Schoonover
> http://www.dangarion.com
> AIM : DanGarion
> _______________________________________________
>
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list