Welcome to SP!  -
Areas & RangesMountains & RocksRoutesImagesArticlesTrip ReportsGearOtherPeoplePlans & PartnersWhat's NewForum

Why the big gap in that page?

Get HTML help, style input, and feedback on your pages from other SP members.
 

Why the big gap in that page?

Postby Diego Sahagún » Wed Feb 29, 2012 5:31 pm

http://www.summitpost.org/view_object.p ... irm_post=7

I've already created an XTHML table with the data of the "Two thousanders in Sierra de Guadarrama" section. Do you know why there is such a big gap preceding the table :?: :?
User Avatar
Diego Sahagún

 
Posts: 14493
Joined: Sun Oct 07, 2001 6:21 pm
Location: Madrid, Spain
Thanked: 548 times in 498 posts

Re: Why the big gap in that page?

Postby Baarb » Wed Feb 29, 2012 6:11 pm

I don't know the technical reasons but I usually find that putting <noformat> and </noformat> round tables gets rid of such excessive white space.
User Avatar
Baarb

 
Posts: 398
Joined: Tue Jun 06, 2006 6:42 pm
Location: The Village with Three Corners
Thanked: 42 times in 29 posts

Re: Why the big gap in that page?

Postby Diego Sahagún » Wed Feb 29, 2012 7:15 pm

Yep Baarb, I've put the noformat tag and the gap has disappeared.

Thanks mate
User Avatar
Diego Sahagún

 
Posts: 14493
Joined: Sun Oct 07, 2001 6:21 pm
Location: Madrid, Spain
Thanked: 548 times in 498 posts

Re: Why the big gap in that page?

Postby rgg » Thu Mar 01, 2012 7:48 am

The "technical reason" for big gaps is an SP thing, but it's quite simple, actually. Normally, a new line in HTML will show up as just one space, and in addition, multiple spaces are condensed to just one.

If that would also be the case on SP, it would be more work to create readable pages, so, on SP, every space and every new line that's put in, comes out as well. Now, upon creating a table in HTML, to make the HTML itself readable, you'll want something like this

Code: Select all
<table>
  <tr>
    <td>...</td>
    <td>...</td>
    <td>...</td>
  </tr>
...
</table>


There are lots of spaces here, and lots of new lines, and SP will show all of them, which creates a big white area!

A really cumbersome solution would be to create the table with something like this

Code: Select all
<table><tr><td>...</td><td>...</td><td>...</td></tr>...</table>


But that would be very inconvenient to maintain.

The <noformat> and </noformat> tags are not standard HTML, but specific to SP, and it means that whatever is between them, should be treated as HTML without the special SP treatment for spaces and new lines.


Mind you, if you do want a new line inside a such a <noformat> tag, for example, in a bit of text inside a table, you have to use proper HTML for that: the </br> tag.

Ciao, Rob
User Avatar
rgg

 
Posts: 430
Joined: Sat Oct 02, 2010 7:15 pm
Location: Amsterdam, Netherlands
Thanked: 95 times in 75 posts


Return to Page Help

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

© 2006-2013 SummitPost.org. All Rights Reserved.