The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. John Huebner
    Posted 3 years 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 *{
        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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.