Question:

How to remove white spaces from web pages?

by Guest2482  |  10 years, 2 month(s) ago

0 LIKES UnLike

I have created web pages but there are white spaces between the buttons. Someone please tell me how to remove white space on web pages.

 Tags: Pages, remove, spaces, Web, white

   Report

1 ANSWERS

  1. Guest2615

    You can easily remove most of white spaces from your code with no changes of appearance to your web pages. Browsers do not care much how good your code is, they precede the code between tags, real or implied. You need Formatting of the code with spaces, tabs, this makes it easy for people to read or understand the text or web page. However, this could slow down your browsers to download your web pages.

    According to Port80 Software and Insider Software the average web page has between 20 and 30 percent extra whitespace. So by following the mentioned procedure you can remove the whites space of your web pages:


    <table id="whitespace  repository" class="longclassname" border = "0" >

    <tr>

    <td> whitespace? what whitespace?

    </td>

    <td> cell  block number two

    </td>

    </tr>

    </table>

    Do this:

    <table id="whitespace repository" class="longclassname" border="0">

    <tr>

    <td>whitespace? what whitespace?

    </td>

    <td>cell block number two

    </td>

    </tr>

    </table>

    Even better, remove all the returns and abbreviate your id and class titles like this:

    <table id="wr" class="lc" border="0"><tr><td>whitespace? what whitespace?</td><td>cell two</td></tr></table>

    CSS and JavaScript can also get benefit from white space removal. Here you need to ensure to not bring any change in the meaning of your CSS or JavaScript during the process, as some spaces are very important between tokens, and for JavaScript returns that may have meaning. You can also eliminate the last semicolon in CSS rules.

     

Sign In or Sign Up now to answser this question!

Question Stats

Latest activity: 10 years, 6 month(s) ago.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.