WordPress.org

Forums

[resolved] How to change the margins of Widget Title? (6 posts)

  1. cbeaman
    Member
    Posted 1 year ago #

  2. Mark Senff
    Member
    Posted 1 year ago #

    Specificity!

    If you add this instead, it should work:

    .widget-area .widget h3.widget-title {
        margin-bottom:18px;
    }
  3. cbeaman
    Member
    Posted 1 year ago #

    hmm, ok, that makes complete sense.

    However, I added this code to the style.css and nothing seemed to happen??

    .widget-area .widget h3.widget-title {
        		margin-bottom: 18px;
    		margin-bottom: 1.2857rem;
    		color: green;
    	}
  4. Mark Senff
    Member
    Posted 1 year ago #

    That's because you put it within the @media print { } declaration, so it will only be applied to print styles. You should put it on line 1613 (or something).

  5. cbeaman
    Member
    Posted 1 year ago #

    I just realized I put the css under @media, and it wasn't reading it.

    I move it and it seems to be working!

    Thanks a lot!

  6. cbeaman
    Member
    Posted 1 year ago #

    Yes, exactly, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic