WordPress.org

Forums

Table borders won't go away even after style.css edit. (5 posts)

  1. helloha
    Member
    Posted 3 years ago #

    Hi,

    I'm getting top and bottom table borders in my pages even when the border is set to 0 in HTML.

    I corrected the style sheet and I'm not getting any result either. Anyone any thoughts?

    This is what I got in style.css

    .entry-content table,
    .comment-content table {
    	border-bottom: 0px solid #ddd;
    	margin: 0 0 1.625em;
    	width: 100%;
    }

    This is the page i'm getting: page

    Cheers,
    K.

  2. Andrew
    Forum moderator
    Posted 3 years ago #

    The top border is applied to the first <td>.
    The bottom border is applied to the <article>.

  3. udaraaka
    Member
    Posted 3 years ago #

    in the style sheet http://kareldc.com/wordpress/wp-content/themes/twentyeleven/style.css

    Find and delete "border-top: 1px solid #ddd;" on line 828 then after that appears or modify the #ddd as #fff

    .comment-content td {
    padding: 6px 10px 6px 0;
    }

    on line 740 remove the line "border-bottom: 1px solid #ddd;" Then after it appears

    .no-results {
    margin: 0 0 1.625em;
    padding: 0 0 1.625em;
    position: relative;
    }

  4. Andrew
    Forum moderator
    Posted 3 years ago #

    Please don't modify Twenty Eleven's stylesheet but create a Child Theme or use Custom CSS/Styles plugins.

  5. udaraaka
    Member
    Posted 3 years ago #

    helloha FYI you can just make the border width 0px too

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.