You are here: Re: float problem in Firefox « HTML « IT news, forums, messages
Re: float problem in Firefox

Posted by dorayme on 11/26/87 11:54

In article
<1154527562.449347.62570@p79g2000cwp.googlegroups.com>,
"squareboy" <max.christian@gmail.com> wrote:

> The simple HTML & CSS below uses float:left and float:right to display
> the three <li>'s on the same line. This works on IE, and it also works
> on Firefox if there is no <a href> tag inside the <li>. But Firefox
> puts the "should be on the same line" link on the following line. Any
> advice on how to get it to stay on the same line?
>
> TIA

> style.css:
>
> .header li {
> float:left;
> }
> .header a {
> float:left;
> display:block;
> }
> .header .sitelink {
> float:right;
> }
> .header .sitelink a {
> float:right;
> }

Get rid of all your css on this and replace with

..header li {
display:inline;
}

add margins and padding appropriately. You are getting too fancy.

--
dorayme

 

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

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