WordPress.org

Ready to get started?Download WordPress

Forums

DD Simple Photo Gallery
Styles over-ride theme styles (1 post)

  1. Hube2
    Member
    Posted 1 year ago #

    You either need to less generic with your classes and ids or you need to be more specific in targeting elements to style.

    For example, your first set of styles:

    .wrapper *{
        border:0;
        margin: 0;
        padding: 0;
    }

    This overrides every element on the page where I attempted to install your plugin. Why?

    The Twenty Twelve theme that is installed by default has the following in the header:

    <div id="main" class="wrapper">

    That div exists in many, many themes.

    The style above basically overwrites the border, margin and padding for every element inside that div that is less specific. For example:

    p {
      margin-bottom: 1em;
    }

    Suddenly all of the bottom margins of all the content are gone because of your style sheet.

    This needs to be made more compatible to be of any real use.

    http://wordpress.org/extend/plugins/dd-simple-photo-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.