Forums

CSS Reset in my custom theme (1 post)

  1. ernestg
    Member
    Posted 4 months ago #

    My pages save text in different styles made in the gui editor. Things such as bold and italic and color changes work as they should. But when I add my usual CSS reset code in my default style.css

    The code I add is:

    /*
    Theme Name: CFN 212 2012
    Theme URI: http://cfn212.com/
    Description: The 2012 default theme for CFN 212.
    Author: The NJ Tech Guy
    Author URI: http://TheNJTechGuy.com/
    Version: 0.7
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)
    
    License:
    License URI:
    
    General comments (optional).
    */
    
    /* --------------- CSS RESET ------------------ */
    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, 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,
    article, aside, canvas, details, embed,
    figure, figcaption, footer, header, hgroup,
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video {
    	margin: 0;
    	padding: 0;
    	border: 0;
    	font-size: 100%;
    	font: inherit;
    	vertical-align: baseline;
    }
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
    	display: block;
    }
    body {
    	line-height: 1;
    }
    ol, ul {
    	list-style: none;
    }
    blockquote, q {
    	quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
    	content: '';
    	content: none;
    }
    table {
    	border-collapse: collapse;
    	border-spacing: 0;
    }

    Once again... when I remove that code, everything works fine it's just when I add that to my CSS at the TOP it gives me a problem. Thanks in advance.

Reply

You must log in to post.

About this Topic