Solved

Remove empty Space in Html

Posted on 2008-11-01
4
693 Views
Last Modified: 2013-11-19
Hello,

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.

Thanks
0
Comment
Question by:DevIndian
4 Comments
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22859536
Hi there;

html compressor is you are searching for?

http://www.serpik.net/ahc/ahc.zip

best regards...
0
 
LVL 39

Accepted Solution

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

Assisted Solution

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

Use either:

display: none;

or

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

or

position: absolute;
left: -1000px;

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now