What is the best spacing code for wordpress?

5 replies
  • WEB DESIGN
  • |
What is the best code to use in wordpress, when you need to space content or links out. I have always used   from my html days, and it works fine, but I am not sure if this is the best idea, or if google appreciates it.

Thanks Glenn
#code #spacing #wordpress
  • Profile picture of the author m4life
    Originally Posted by gjd6599 View Post

    What is the best code to use in wordpress, when you need to space content or links out. I have always used   from my html days, and it works fine, but I am not sure if this is the best idea, or if google appreciates it.

    Thanks Glenn
    Non-breaking spaces don't matter, as far as I see.

    Most important is the actual content.

    If you want to link out on a wordpress page, do it wisely, not with a spammer.

    Real quotes and content work. Don't follow the dark-side.

    Real people = real $$$.
    {{ DiscussionBoard.errors[5000463].message }}
    • Profile picture of the author EmanuelR
      I use css for spacing content as in "padding" or "margin".

      CSS is always the best way (helps cut down on file size) to go than html hard coding for spacing content.

      The CSS padding properties define the space between the element border and the element content.

      Example of use of Padding:

      padding-top:25px;
      padding-bottom:25px;
      padding-right:50px;
      padding-left:50px;

      Short hand version: padding:25px 50px;

      Example of use of Margin:

      margin-top:100px;
      margin-bottom:100px;
      margin-right:50px;
      margin-left:50px;

      Short hand version: margin:100px 50px;

      --------
      Emanuel
      Signature
      Join Map Here!: Huge Opportunity. Start Making $566 per sale!

      Get High Quality PLRs from PLRtoBuy.com | Free Courses For Entrepreneurs - Login Here.
      {{ DiscussionBoard.errors[5000615].message }}
  • Profile picture of the author OBaz
    For precise spacing between blocks of content CSS - div is the way to go. You can create some blocks of spacing divs to use in all your pages. Something along the way of spacer_5 with 5px, spacer_10 with 10px and so on... So they can act as an empty padding spaces.
    {{ DiscussionBoard.errors[5000632].message }}
    • Profile picture of the author AnniePot
      I usually edit my style.css to format paragraphs.

      As an example, add this declaration:


      .entry p { line-height: 1.5; }
      where .entry p could be #post p or something else depending on your theme.

      Or:

      .entry p {padding:0 0 10px 0;}
      Adjust the 10 pixel amount to whatever amount you'd like.
      {{ DiscussionBoard.errors[5001587].message }}
  • Profile picture of the author nencyburlin
    The preferred method is to insert a blank space or extra code, but to put the invisible of the circle. You can choose to put the border at the bottom and the top section and adjust the thickness of the board, if necessary.
    {{ DiscussionBoard.errors[5006852].message }}

Trending Topics