Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8395855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:24:09+00:00 2026-06-09T20:24:09+00:00

I know i could remove the white space but that is so inconvenient. There

  • 0

I know i could “remove the white space” but that is so inconvenient. There are so many places in the html where i have some inline-block element and it would be hell to go and look for every one of them.

Is there a way to make this white space not appear?

This is my site, as you can see the spaces are breaking my layout: http://www.fashionstore.al/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:24:10+00:00Added an answer on June 9, 2026 at 8:24 pm

    There are a couple of ways of “cheating”. The way I used to do it before I learned any server-side code was this:

    <div id="container"><!--
       --><div class="block">Text</div><!--
       --><div class="block">More text</div><!--
    --></div>
    

    By commenting out the whitespace, it no longer causes problems for layout but still lets you separate the lines.

    With server-side code, it’s easier:

    <?php
        echo '<div id="container">'
                .'<div class="block">Text</div>'
                .'<div class="block">More text</div>'
            .'</div>';
    ?>
    

    Or, another method:

    <?php ob_start(function($c) {return preg_replace("/>\s+</","><",$c);}); ?>
    <div id="container">
        <div class="block">Text</div>
        <div class="block">More text</div>
    </div>
    <?php ob_end_flush(); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that I know could be nicer if it's done in
I have some images in html that have a white background. I need to
I know I could solve this with a header but I'd rather not have
I don't know what could be causing this issue, but for some reason, elements
I know this a common question but everything I found seems to remove white
I know this could be done manually with some hardcoded Linq Joins. However, I
I know I could code what I'm trying to achieve, but I'd like to
I know I could use PHP to do this, but wanted to find out
I know 2 ways to remove doubles from an array of objects that support
I have a html page that needs to expand width and height, so needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.