CSS for table and img - can't get rid of gaps

Sam Sharpe lists.redhat at samsharpe.net
Thu Nov 19 15:27:05 UTC 2009


2009/11/19 Gary Stainburn <gary.stainburn at ringways.co.uk>:
> I'm creating a tree-view using a table and three images. The logic is working
> fine for generating the html, but I cannot get the css right to eliminate the
> gaps between the images.  I don't know if it's the table or the images that
> generate the gaps.

Not really a Fedora problem...

> .teeview img {
>        margin: 0px;
>        border: 0px;
>        padding: 0px;
>        hspace: 0px;
>        vspace: 0px;
>        width: 20px;
>        height: 20px;
> }

Although you don't list your HTML, I would think that this should be:

.treeview img {
...
}

Otherwise it won't match the .treeview class.

--
Sam




More information about the fedora-list mailing list