Re: Re: Eliminating space between HR and Image

From: Date: Thu, 20 Mar 2003 00:46:45 +0000
Subject: Re: Re: Eliminating space between HR and Image
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-140373@lists.php.net to get a copy of this message
Thanks Richard, The obvious escaped me. Regards, Andre On Wednesday 19 March 2003 07:39 pm, you wrote: > Here is your code: > > First, make a one pixel png the color you want your HR > > <img src="images/color.png" width=100% height=1><br> > <img src="images/yourbanner.gif" width=468 height=60> > > Et, Voila! > > > Quoting Michiel van Heusden <michiel@aemulatio.nl>: > > ### this is an HTML-problem, not php..but anyway > ### > ### i have no clue why the extra space would appear, > ### but I'd try to add absolute positiong to the HR and IMAGE as well, that > ### should solve the problem > ### > ### like: > ### <style type="text/css"> > ### <!-- > ### hr { > ### position: absolute; > ### top: 0px; > ### } > ### img { > ### position: absolute; > ### top: 8px; > ### } > ### --> > ### </style> > ### > ### grace > ### michiel > ### > ### > ### "Andre Dubuc" <aajdubuc@webhart.net> wrote in message > ### news:200303200001.h2K01M6t008516@filtermail.webhart.net... > ### > Hi, > ### > > ### > I've added an animated gif in the banner area of my site, and just > ### above > ### it, > ### > a horizontal rule to give added emphasis. The problem is, no matter > what ### I > ### > do, I cannot get rid of an extra space that appears between the two. > Is ### this > ### > a natural function? Is there some way of eliminating the space? > ### > > ### > The code: > ### > > ### > <?php > ### > . . . . > ### > <div class="banner"> > ### > <hr align="left" size="8" width="1000" > style="background: #9a3e2b;"> > ### > <img src="icr.gif" height="100" width="1000"> > ### > </div> > ### > . . . > ### > ?> > ### > > ### > CSS code: > ### > > ### > div.banner { > ### > position: absolute; > ### > top: 0px; > ### > left: 1%; > ### > } > ### > > ### > I will be grateful for any ideas or advice on how to fix this. > ### > Tia, > ### > Andre > ### > ### > ### > ### -- > ### PHP General Mailing List (http://www.php.net/) > ### To unsubscribe, visit: http://www.php.net/unsub.php > ### > ###

« previous php.general (#140373) next »