Remove Padding and Margin of All Elements inside
-
Hi there,
I’ve been editing the Twenty Ten css file to change the code/pre tag design.
I’ve written a plugin which converts < code > tags into nested < pre > & < table > tags.
The tag structure is like this,
<code> $codelines </code>
becomes
<pre class="code"> <table> <tr> <td> <table> <tr><td>$codenum</td></tr> </table> </td> <td> <table> <tr><td>$codeline</td></tr> </table> </td> </tr> </table> </pre>
So, I added the following css code at the end of the syle.css file.
pre.code table, td, tr { margin:0 0 0 0; padding:0 0 0 0; border:0; } pre.code { margin:0; padding:0px; border:0; width:100%; overflow:scroll; }
Still I got two major problems. I uploaded the screen shot here.
- When there is no line, the td section gets squished. I’d like to keep the height even there is no code in it.
- It looks like the border or the padding seems to be too wide. I’d like to eliminate all the margins and paddings produced by this plugin.
Can these be fixed? Thanks for your help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove Padding and Margin of All Elements inside’ is closed to new replies.