Asked • 05/24/19

How do you create a hidden div that doesn't create a line break or horizontal space?

I want to have a hidden checkbox that doesn't take up any space on the screen.If I have this: <div id="divCheckbox" style="visibility: hidden">I don't see the checkbox, but it still creates a new line.If I have this: <div id="divCheckbox" style="visibility: hidden; display:inline;">it no longer creates a new line, but it takes up horizontal space on the screen.Is there a way to have a hidden div that takes up no room (vertical or horizontal?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.