CSS bubbling while using jQuery Quicksand

后端 未结 2 833
深忆病人
深忆病人 2021-01-28 15:56

I\'m using jQuery Quicksand to create a filterable portfolio of articles:

http://davekiss.com/new/

The problem is, when the filters in the sidebar paragraph are

2条回答
  •  情话喂你
    2021-01-28 16:12

    rewrite your rule as follows:

    article.project-container {
        float: left;
        position: relative;
        top: 5px !important;
        left: 5px !important;
        margin: 5px !important;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
    }
    

    the !important declarations are used to override the plugin's rules.

    (background is also re-written as specifying a shorthand for a single property is redundant).

提交回复
热议问题