WordPress.org

Forums

Problem with tables in Twenty Eleven (2 posts)

  1. JACARD
    Member
    Posted 2 years ago #

    Hi,

    I have problems with Twenty Eleven. I created a child theme, and I want to use a table with absolutely no spaces between the row. There will be 2 cells on each row, one with an image and one with text.

    Here is the HTML code :

    <table>
    <tbody>
    <tr>
    <td class="listhomepage1" style="border: 1px solid #000000;"><img title="50x50" src="THEURL/50x50.png" width="50" height="50" /></td>
    <td class="listhomepage2" style="border: none;">blabla</td>
    </tr>
    </tbody>
    </table>

    and the CSS

    .listhomepage1 {
    
            margin:0 0 0 0;
            padding:0px 0px 0px 0px;
    
    }
    
    .listhomepage2 {
    
            margin:0 0 0 0;
    	padding:0px 0px 0px 0px;
    
    }

    So, there should be my image directly rounded by the black border, with no space between.

    But here is how my images appears : Link to the image. There is a 2px-wide blank on the right and a 6px-wide blank at the bottom. Moreover, the image is no more 50x50 but 46x50.

    Have you got any idea where it could come from ?
    Thanks in advance

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    I'm sorry but it is beyond the scope of these forums to deal with basic CSS issues. Try a dedicated CSS resource such as http://www.css-discuss.org/ instead. In the meantime, using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

Topic Closed

This topic has been closed to new replies.

About this Topic