Re: have problems with div's
- From: "Murray" <forums@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 09:04:30 -0400
> but it shows a carriage return when they are empty.
Of course. That's because <div> is a block tag. All block tags start on a
new line, and force subsequent markup to start on a new line too.
> how do I get only the div's that have content to print.
> and the ones that are empty prints nothing.
Say more about this. You have multiple pages, each having the same array of
divs, some of which are loaded with content, and some of which are not? And
you want those that are 'empty' to not affect the screen position of the
others? I can't think of a way to do that automatically. Is there a reason
why you wouldn't just delete them?
--
Murray
============
<cheers> wrote in message news:uM5TentWFHA.1384@xxxxxxxxxxxxxxxxxxxxxxx
>I have the following within one of my pages created with FrontPage.
>
> <div id="bAvocado"></div>
> <div id="bButterSquash"></div>
> <div id="bCauliflower"></div>
> <div id="bCornOnCob"></div>
> <div id="bCucumber"></div>
> <div id="bGarlic"></div>
>
> and it works.
>
> but it shows a carriage return when they are empty.
>
> not what I need.
>
> how do I get only the div's that have content to print.
> and the ones that are empty prints nothing.
>
>
> thank you.
>
>
>
>
>
>
>
.
- Follow-Ups:
- Re: have problems with div's
- From: cheers
- Re: have problems with div's
- References:
- have problems with div's
- From: cheers
- have problems with div's
- Prev by Date: Re: "href" in graphic used as Hyperlink..
- Next by Date: Re: "href" in graphic used as Hyperlink..
- Previous by thread: have problems with div's
- Next by thread: Re: have problems with div's
- Index(es):
Loading