Hello,

Cek this site: www.advance-web-studio.com

There is a white space underneath it that I do not know where it comes from.

this is my index.php

 <b>Latest Projects:</b><br><br>

    <div>
      <a href="<?php echo base_url() ?>public/images/large pic8.jpg" title="Ecommerce - Vitoshop"><img src="<?php echo base_url() ?>public/images/large pic8.jpg" width="200px" height="180px" alt="turntable"></a>

      <a href="<?php echo base_url() ?>public/images/large pic7.jpg" title="Company Profile - Masterlink"><img src="<?php echo base_url() ?>public/images/large pic7.jpg" width="200px" height="180px" alt="turntable"></a>

      <a href="<?php echo base_url() ?>public/images/large pic6.jpg" title="Company Profile - Pureline"><img src="<?php echo base_url() ?>public/images/large pic6.jpg" width="200px" height="180px" alt="DIY Robot Kit"></a>

      <a href="<?php echo base_url() ?>public/images/large pic5.jpg" title="Company Profile - GSA"><img src="<?php echo base_url() ?>public/images/large pic5.jpg" width="200px" height="180px" alt="Todly"></a>

      <a href="<?php echo base_url() ?>public/images/large pic4.jpg" title="Company Profile - SKAP"><img src="<?php echo base_url() ?>public/images/large pic4.jpg" width="200px" height="180px" alt="legend of zelda tea party"></a>
    </div>
  </div>

  <div class="container-fluid">
    <?php include 'template/footer.php'; ?>
  </div>
</body>
<?php include 'template/script.php'; ?>
 </html>

How to delete the white space?

Recommended Answers

All 4 Replies

I finally get rid of the white space by deleting the </body> and </html> which is a little bit strange.

Why do I have to do that to delete the white space?

I don't understand why I get a down vote for this? I only copy my other page codes that works but do not understand the reason why.

Do not include any outside of <head></head> and <body></body> check line 20 in your code sample

When you have something outside the <body></body> tag, it will not give result and thus gives you white space. Include everything into that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.