You are here: Re: Small CSS problem « HTML « IT news, forums, messages
Re: Small CSS problem

Posted by Els on 07/08/05 19:24

Paul F. Johnson wrote:

> Hi,
>
> Els wrote:
>
>> Just guessing:
>> set h1{margin-top:0;} and see if it disappears.
>
> Not locally - so I doubt it will on the server :-(
>
> The problem looks like it's in the content div. If I change
>
> h1 {margin-top: -5px;}
>
> The text still appears at the top. I've tried altering content to be
> either absolute or relative, but that doesn't seem to be doing the trick.

#topblock{
top:0;
}
(you used position:fixed without setting a position for it)

Now.. open up any browser that is not called Internet Explorer, narrow
your window till the red text wraps. Then scroll...
Solution:
Change 'height:160px;' to:
min-height: 160px;
_height:160px;

min-height for browser that understand min-height (will expand when
the contents are higher (by font-size change or wrapping), and _height
for WinIE, which will ignore the underscore. Other browsers reckon
_height doesn't exist, and will ignore the line altogether.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Nazareth - Bad, Bad, Boy

 

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

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