Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> mały problem z float pod chrome
nmts
post 29.01.2011, 16:51:11
Post #1





Grupa: Zarejestrowani
Postów: 283
Pomógł: 34
Dołączył: 21.03.2008

Ostrzeżenie: (0%)
-----


  1. <p class='head_title' style="overflow: hidden;">
  2. <span style="float: left;">
  3. <a href="{$strBaseUrl}index.php/help/contents" style="color: #fff;">Contents</a>  |  <a href="{$strBaseUrl}index.php/help/faq" style="color: #fff;">FAQ</a>
  4. </span>
  5. <span style='float: right; margin: -5px 0px; '>
  6. <form method='post' action='{$strBaseUrl}index.php/help/search/'>
  7. <input style="background: #F4F4F4; padding: 5px; border: 1px solid #000; font-weight: bold; font-size: 0.9em; -webkit-border-radius: 3px; border-radius: 3px; -moz-border-radius: 3px;" type='text' value='Search in help...' name='keywords' onclick="if(this.value=='Search in help...')this.value=''" onblur="if(this.value=='')this.value='Search in help...'" />
  8. <input type='submit' name='submit' value='Search' style="background: #81BE00; padding: 4px; cursor: pointer; border: 0; font-weight: bold; font-size: 0.9em; color: #fff; text-shadow: 1px 1px 5px #999; -webkit-border-radius: 3px; border-radius: 3px; -moz-border-radius: 3px;" />
  9. </form>
  10. </span>
  11. </p>


Pod FF ten form jest po prawej natomiast w chrome spadają niżej ponieważ form w p jest błędem, ale jak mogę wymusić działanie jak w ff?

Ten post edytował nmts 29.01.2011, 17:00:35


--------------------
Free Web Tools - narzędzia dla programistów, webdeveloperów i specjalistów seo...
Go to the top of the page
+Quote Post
lejs
post 29.01.2011, 17:49:30
Post #2





Grupa: Zarejestrowani
Postów: 24
Pomógł: 3
Dołączył: 21.01.2008
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


nie lepiej zamiast p i span dać div?? Jak dajesz float to musisz określić szerokość elementu, po float w prawo też warto dodać element "czyszczący" float, np <div style="clear:both; height:1px;"> </div>

Ten post edytował lejs 29.01.2011, 17:50:32
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 23.06.2025 - 01:34