Custom css doesn't overwrites defaul

  • Author
    Posts
  • #32301
    Anton

    I want to make h2 font-weight: 700 with this code in custom css area:

    #front-columns h2 {
    font-weight: 700;
    } 

    But Nirvana still uses it’s default code

    #front-columns h2 {
    	display: block;
    	float: none;
    	margin: 0px auto;
    	font-size: 45px;
    	line-height: 55px;
    	clear: both;
    	font-weight: 300;
    }
    
    #32303
    Anton

    But these css is working

    .nivo-caption .inline-slide-text {
    font-weight: 400;
    background-color: rgba(131,131,131,0.45); 
    } 
     
    #site-description {
    font-weight: 400;
    } 
    
    .column-header-image {
    font-weight: 700;
    } 
    #32325
    Zed
    Cryout Creations mastermind

    Custom CSS sometimes needs to be more specific (because of the order different styles are applied). When a rule doesn’t work, add body in front of the selector. If even that fails, try adding !important to the rule (but try not to overuse !important).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #32355
    Anton

    Thank you! body works!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Custom css doesn't overwrites defaul’ is closed to new replies.