PDA

View Full Version : Question regarding the height of a DIV Tag



kapilmirchi
May 31st, 2010, 06:31 PM
Can I force the height of the DIV tag to be set to '0'. The problem that I am facing is that adding a div tag to display or hide some text is causing vertical spacing issues as there are multiple div tags one below the other.

abduraooft
May 31st, 2010, 06:37 PM
The problem that I am facing is that adding a div tag to display or hide some text is causing vertical spacing issues as there are multiple div tags one below the other. Can't you just hide them by setting display:none; in style/css ?

optimus203
May 31st, 2010, 07:40 PM
You can, but abduraooft's solution seems to be a better way of doing things.