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

后端 未结 10 1202
故里飘歌
故里飘歌 2020-11-29 15:18

I want to have a hidden checkbox that doesn\'t take up any space on the screen.

If I have this:


      
10条回答
  •  遥遥无期
    2020-11-29 15:25

    Use style="display: none;". Also, you probably don't need to have the DIV, just setting the style to display: none on the checkbox would probably be sufficient.

提交回复
热议问题