• Resolved Gambalunga

    (@fredlegs)


    I am developing a site using the child theme of Twenty Thirteen.

    Iwant to have bottom margins on my paragraph text in the posts but if I place a bottom margin it is being overridden by code from somewhere else.

    This is what I see if I check it out with Firebug

    element.style {
        line-height: 100%;
        margin-bottom: 0;
    }
    #content p, #content ul, #content ol, #content dd, #content pre, #content hr {
        margin-bottom: 24px;
    }
    p {
        margin-bottom: 18px;
    }
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
        background: none repeat scroll 0 0 transparent;
        border: 0 none;
        margin: 0;
        padding: 0;
        vertical-align: baseline;
    }
    #content, #content input, #content textarea {
        color: #333;
        font-size: 16px;
        line-height: 24px;
    }
    body, input, textarea {
        color: #666;
        font-size: 12px;
        line-height: 18px;
    }
    body, input, textarea, .page-title span, .pingback a.url {
        font-family: Georgia,"Bitstream Charter",serif;
    }
    body {
        line-height: 1;
    }

    Any ideas as to where:

    element.style {
    line-height: 100%;
    margin-bottom: 0;
    }

    is coming from, or how to fix the issue , would be greatly appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gambalunga

    (@fredlegs)

    Sorry but I noticed that the code posted is not as one would see it on the screen. The line: margin-bottom: 18px; is struck through indicating it has been overridden by the format in the line: margin-bottom: 0;

    stephencottontail

    (@stephencottontail)

    Can you post a link to your site?

    Thread Starter Gambalunga

    (@fredlegs)

    Ah! Thanks for the offer of help but I have found the source of the error. I had copied in some text that was preformated from another site and it copied html code from that site.

    I was chasing a style problem when it was actually not in the theme at all but in the text. As soon as I viewed it as unformated text the problem was obvious.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bottom margins overridden in child theme’ is closed to new replies.