473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Div control and additional whitespace

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
Nov 17 '05 #1
3 975
Hi Donal,

div is a block element.

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

-- Alex Papadimoulis

"Donal McWeeney" <do************@NO-SP-AM.aimware.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
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

Nov 17 '05 #2
Thanks...

"Alex Papadimoulis" <alexp-at-halogenstudios.com> wrote in message
news:Oq****************@TK2MSFTNGP09.phx.gbl...
Hi Donal,

div is a block element.

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

-- Alex Papadimoulis

"Donal McWeeney" <do************@NO-SP-AM.aimware.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
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


Nov 17 '05 #3
Thanks...

"Alex Papadimoulis" <alexp-at-halogenstudios.com> wrote in message
news:Oq****************@TK2MSFTNGP09.phx.gbl...
Hi Donal,

div is a block element.

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

-- Alex Papadimoulis

"Donal McWeeney" <do************@NO-SP-AM.aimware.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
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


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randy Birch | last post by:
Reposted as the original is reported as deleted from the server. re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced...
2
by: Wolfgang Jeltsch | last post by:
Hello, it is often convenient to insert whitespace into an XML document in order to format it nicely. For example, take this snippet of a notional DocBook XML document: <para> This is a...
1
by: Oli Filth | last post by:
Hello I'm fairly new to XML, and currently working on an XSD schema. I'm having a problem when validating against it, specifically when it comes to using xs:token. If a "details" element is...
1
by: chambersdon | last post by:
I have created a Web Custom Control that inherits from WebControls.ListBox but can't get it to retain the selectedIndex after a postback. As a test I created a very simple version of the control...
0
by: threecrans | last post by:
If you create a new server control, and override the Render method with the following code: protected override void Render(HtmlTextWriter output) { // <TABLE id="mytable">...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
1
by: Maruthi | last post by:
Hi, I just wanted to discuss about the wierd behavior of placeholder control. Let me explain the scenario first. We are building an online loan origination system using ASP.NET. On a web form we...
5
by: James | last post by:
Hi, I have built a Windows Form Control which is hosted in IE (for our Intranet). The form logs into a Web Service and retrieves information for display. However, because the web service is on a...
0
by: Tony Johansson | last post by:
Hello! I have a very specific question and that is about how to inherit a visual control for example the control System.Windows.Forms.TextBox without causing the environment to delete the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.