Hey everyone! I'm experiencing a problem with my blog. For the <code> inside of the <pre> boxes, there seems to be random padding on the top and on the bottom of it. Below is a url to a screenshot that climaxes my problem. Notice there's no padding on the right side, a little padding on the left, and a lot of padding on the top and bottom.
Hey everyone! I'm experiencing a problem with my blog. For the <code> inside of the <pre> boxes, there seems to be random padding on the top and on the bottom of it. Below is a url to a screenshot that climaxes my problem. Notice there's no padding on the right side, a little padding on the left, and a lot of padding on the top and bottom.
http://d.pr/i/bm5i
now that is weird. the reset doesn't add anything to it.
hmmm. u have a line-height that might be the issue:
code { font-family: 'Inconsolata'; line-height: 20px; }@twincy , There's still padding on the sides. :( Thank you for you help though! Very appreciated.
It's the spaces, tabs, and line returns in your code
wolfcry is right, it’s a line return causing that issue. So instead of writing your HTML like this:
You should write it like this:
Are you wrapping it in "code" tag? If so that's prob why. Just remove it and only use pre. Like this http://www.visibilityinherit.com/code/display-code.php