Div control and additional whitespace

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
 
A

Alex Papadimoulis

Hi Donal,

div is a block element.

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

-- Alex Papadimoulis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top