You are here: Re: how to do this, show hide example? « HTML « IT news, forums, messages
Re: how to do this, show hide example?

Posted by scripts.contact on 04/09/07 18:36

On Apr 9, 7:33 am, soni2...@yahoo.com wrote:
> hi,
> if i try the below, using your example:
....
> it hides, but when it does it leaves a gap above "hello i'm below..."
> while that microsoft page, it didn't leave a gap when hidden. anyway
> to avoid that gap?

yes.

this is the html content-

<b >Show Example</b>
<br>
<span>some content ....</span>
<br>
hello i'm below the span.....
<br>
so am i

after hiding the span element :

<b >Show Example</b>
<br>
<br>
hello i'm below the span.....
<br>
so am i
----------

as you can see, now there are 2 line breaks.
To avoid this, put one <br> inside the span element :

<b>Show Example</b><br>
<span id=example >
some content ....
<br>
</span>
hello i'm below the span.....<br>
so am i


: )

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация