Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    78
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Something is stripping my paragraphs??

    http://www.drownjewellery.com/about/

    I have clear paragraphs set up in my pages but something in this theme (probably the CSS but I can't see it) is stripping my paragraphs. Sometimes I like to leave a line gap between paragraphs but no amount of
    Code:
    <p>&nbsp;</p>
    or
    Code:
    <br />
    is getting gaps in between paragraphs. All my text just smooshes up.

    Halp pls oh smart ones!!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    If you need to add gaps in between paragraphs, add
    Code:
    .page-body p{
    margin:1em 0;
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    Yes, something is stripping the default top and bottom margin of your paragraphs, and it is the global reset rule on line 13 in your stylesheet:
    Code:
    * {
    	margin: 0;
    	padding: 0;
    }
    What you’d have to do is adding a rule somewhere after the above one that (re)applies the margin, e. g.:
    Code:
    p {margin: 1em 0;}

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    It looks like your blank paragraphs are having their closing </p> removed by your CMS (just guessing because the empty paragraphs are missing their closing tags).

    This is just as well since blank paragraphs are a no-no anyway. Try adding this to your theme's style sheet:
    Code:
    p.space_below {margin-bottom:1em;}
    And then use this when you write your content:
    Code:
    <p style="text-align: justify;">It is a far cry from where she started in the land of vintage fancies  and kitsch, but award-winning Drink Me Alice designer Alicia Hannah Naomi has taken the meaning of creativity far into the great beyond with her  new jewellery concept: <em>Drown</em>.</p>
    <p style="text-align: justify;">The pieces making up her daring maiden  collection for <em>Drown</em>: Nebula, feature immaculate digital prints of outer  space, a concept inspired by the designer’s intrigue and interest in  chemical structure and the natural formations found in crystals and  minerals. The softness of the images set against stark geometric shapes,  dark costume metal chains, and black onyx baubles ensure that these  pieces are not merely accessories but statement treasures.</p>
    <p style="text-align: justify;">The <em>Drown</em> concept and Nebula Collection are very personal for Alicia, and true to  her own heart she has produced pieces that reflect her amicably: a  little fanciful, a little dark, but always beautiful.</p>
    <p style="text-align: justify;" class="space_below">The <em>Drown</em> concept is designed and hand assembled by Alicia in Melbourne, Australia  at her home studio.</p>
    <p style="text-align: justify;">Words by Avital Kamil.</p>
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    New Coder
    Join Date
    Jul 2009
    Posts
    78
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks I tried VIPStephan's solution and it seemed to work great

  • #6
    New Coder
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    1
    Thanked 1 Time in 1 Post
    I've noticed in the past that the WordPress Visual Editor will sometimes remove code from your posts as well. Under settings, you can turn off the Visual editor. That seemed to have solved my problem.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •