Remove empty Space in Html

Posted on 2008-11-01
Last Modified: 2013-11-19

I'm trying to make invisible some of the controls on ASPX pages when user checks something, but I cannot remove the space , where the control becomes invisible.

Question by:DevIndian
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Expert Comment

ID: 22859536
Hi there;

html compressor is you are searching for?

best regards...
LVL 39

Accepted Solution

Roger Baklund earned 250 total points
ID: 22859537
Set the CSS 'display' property to 'none' to hide items, do not set 'visibility' to 'hidden'.

Assisted Solution

EliotBall earned 250 total points
ID: 23059251
That's right:

Use either:

display: none;


visibility: hidden;
width: 0;
height: 0;


position: absolute;
left: -1000px;

Any would work. display: none; is obviously the most elegant solution.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Embedding Tags in a restricted UI 6 59
How to get chosen background-color on every line? 10 44
Can't Find the Homepage on my site 4 47
Div not showing up 6 33
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question