Extra Line Breaks in WP
-
We have a site on which we are trying to remove so much of the white spaces between elements on the first page. We migrated an HTML website to WordPress (using the TwentyEleven theme) for this nonprofit and the spacing issue is frustrating us.
for this site, https://nicholashouse.org/, has created tables on the front page that the client can use to update events easily and to separate elements on the front page.
If you look, you’ll see substantial white space between the second and third table, “Ongoing Events” and “Upcoming Events” and that third table and the footer on the bottom, “Nicholas House. It just works.”
Here’s what the code looks like:
<p> <span style="color:#088ccc;"><strong><span style="font-size: 20px;">Upcoming Events</span></strong></span> </p> <table border="0" cellpadding="2" cellspacing="2" style="width: 500px;"> <tbody> <tr> <td> <p style="text-align: center;"> <img alt="" class="size-full wp-image-106 alignnone" height="196" src="https://nicholashouse.org//wp-content/uploads/2013/03/nicholas-house-mockup-2-122.jpg" style="" title="Dream Builders Luncheon 2013" width="269" /> </p> <p style="text-align: center;"> <iframe allowfullscreen="" frameborder="0" height="215" scrolling="no" src="https://www.youtube.com/embed/XFkoYstjeWk" width="260"></iframe> </p> <p style="text-align: center;"> <span style="font-size:14px;">RSVP for the Luncheon <a href="https://nicholashouse.wufoo.com/forms/s7s7x7/"><strong>here</strong></a>.</span> </p> </td> </tr> </tbody> </table> <h2> <span style="font-size:20px;"><span style="color: rgb(0, 140, 204);"><strong>Ongoing Events</strong></span></span> </h2> <table align="left" border="0" cellpadding="2" cellspacing="2" height="464" width="631"> <tbody> <tr> <td> <p style="text-align: center;"> <a href="https://nicholashouse.wufoo.com/forms/s7x1x7/" rel="" style="" target="" title=""><img alt="nicholas-house-mockup-2-11" class="size-medium wp-image-105 aligncenter" height="300" src="https://nicholashouse.org//wp-content/uploads/2013/03/nicholas-house-mockup-2-111-139x300.jpg" style="" title="Nicholas House Open Door Tour" width="139" /></a> </p> </td> </tr> </tbody> </table> </div> <p> <span style="color:#008ccc;"><span style="font-size: 20px;"><strong>Our Friends</strong></span></span> </p> <table border="0" cellpadding="1" cellspacing="1" style="width: 700px;"> <tbody> <tr> <td> <a href="https://211online.unitedwayatlanta.org/search.aspx" rel="" style="" target="" title=""><img alt="UWGA_4cp_v-100pxH" class="size-full wp-image-211 aligncenter" height="108" src="https://nicholashouse.org//wp-content/uploads/2013/03/UWGA_4cp_v-100pxH1.png" style="" title="United Way of Greater Atlanta" width="130" /></a> </td> <td> <a href="https://www.gatewayctr.org/" rel="" style="" target="" title=""><img alt="gatewaylogo" class="size-full wp-image-212 aligncenter" height="64" src="https://nicholashouse.org//wp-content/uploads/2013/03/gatewaylogo1.png" style="" title="Gateway 24/7 Center" width="133" /></a> <p> </p> <p> </p> <p> </p> <p> </p> </td> <td> <a href="https://www.acfb.org/" rel="" style="" target="" title=""><img alt="AtlantaCommunityFoodBank" class="size-full wp-image-219 aligncenter" height="124" src="https://nicholashouse.org//wp-content/uploads/2013/03/AtlantaCommunityFoodBank11.jpg" style="" title="Atlanta Community Food Bank" width="130" /></a> </td> <td> <a href="https://www.cfgreateratlanta.org/" rel="" style="" target="" title=""><img alt="" class="size-full wp-image-214 aligncenter" height="104" src="https://nicholashouse.org//wp-content/uploads/2013/03/Community-Foundation-for-Greater-Atlanta1.jpg" style="" title="Community Foundation for Greater Atlanta" width="120" /></a> </td> <td> <a href="https://www.homelesschildrenamerica.org/reportcard.php" rel="" style="" target="" title=""><img alt="" class="size-thumbnail wp-image-215 aligncenter" height="120" src="https://nicholashouse.org//wp-content/uploads/2013/03/AYO2010Cover_1208111-150x150.jpg" style="" title="Campaign to End Child Homelessness" width="120" /></a> </td> <td> <a href="https://www.familyhomelessness.org/" rel="" style="" target="" title=""><img alt="NCFH Logo No Text" class="size-thumbnail wp-image-216 aligncenter" height="120" src="https://nicholashouse.org//wp-content/uploads/2013/03/NCFH-Logo-No-Text1-150x150.jpg" style="" title="The National Center on Family Homelessness" width="120" /></a> </td> </tr> </tbody> </table> <p> <strong><span style="font-size:24px;"><span style="color:#008ccc;">Nicholas House.</span> It just works.</span></strong> </p> <p> (c) 2010-2013. Nicholas House, Inc. All rights reserved. </p>
How can we fix this? We’ve tried manually removing the multiple “<p> </p>” tags and they seem to reappear. We’d like this site to look cleaner and more professional (though we have limitations due to content we were provided) so it represents good work we’ve done.
Please help us fix this.
Dahna
- The topic ‘Extra Line Breaks in WP’ is closed to new replies.