wordpress sidebar help

4 replies
  • WEB DESIGN
  • |
can someone tell me how to add padding to the text around the custom html widget on my site (under heading Solar Power Generation? it stretches from edge to edge i want at least 5px padding

site: http://www.solarpowergeneration.org/
#sidebar #wordpress
  • Profile picture of the author AnniePot
    Originally Posted by coolspot2 View Post

    can someone tell me how to add padding to the text around the custom html widget on my site (under heading Solar Power Generation? it stretches from edge to edge i want at least 5px padding

    site: Learn how to make your own solar panels and diy solar energy
    Not sure how your sidebar is programmed, but would this work:

    <div style="padding-left: 5px;" "padding-right" 5px;>Content </div>
    {{ DiscussionBoard.errors[4702173].message }}
    • Profile picture of the author Kyle Oliveiro
      [DELETED]
      {{ DiscussionBoard.errors[4702415].message }}
      • Profile picture of the author AnniePot
        Originally Posted by Kyle Oliveiro View Post

        Inline styling is rarely the way to go.

        Add this to your style.css file:

        Code:
        div.textwidget {
                  padding: 5px; /* Adjust value as needed */
        }
        Also, remove the table element that the text is contained in. Just use plain text in your Text Widget.
        Yes, you're absolutely right
        {{ DiscussionBoard.errors[4703080].message }}
        • Profile picture of the author coolspot2
          thanks that worked nicely
          {{ DiscussionBoard.errors[4711663].message }}
  • Profile picture of the author iqbal
    your website looks nice now.
    {{ DiscussionBoard.errors[4721478].message }}

Trending Topics