Re: Designing with tables and spacer GIFs
"Jakob ?berg" <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Organization | Spiro kommunikation |
| Message-ID | <[email protected]> |
> I've tracked down the problem to a style used in plone.css :
>
> img {
> border: none;
> vertical-align: middle;
> }
>
> With it it makes the spacer-GIF trick useless, since it leaves extra space
> around the images. Without it some of the pictures in the Plone interface
> get the 1-pixel border that is default for linked images.
>
> I'm trying to investivate if I could add some more properties to the
> img-style that would remove the problem, but I haven't found anything so
> far. Any help would be apreciated!
>
Ok, for anyone interested, I solved the problem!
The problem was that setting vertical-align to middle adds extra space
around the image (at least if it's small). I solved this by adding the
following to ploneCustom.css:
img {
vertical-align: baseline;
}
The question now is why it was there in the first place? Does anyone know?
If it doesn't perform anything useful, maybe it would be worth concidering
removing it in future releases...
Chao!
/ Jakob.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click