Div control and additional whitespace

  • Thread starter Thread starter Donal McWeeney
  • Start date Start date
D

Donal McWeeney

Hi,

I noticed that the div control renders whitespace and a blank line when it
is rendered with no contents - it it possible to get it to output
<div></div> without any whitespace.

Thanks

Donal
 
Hi Donal,

div is a block element.

<div style="display:inline;"></div> should do the trick

-- Alex Papadimoulis
 
Back
Top