Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] nie działa css dla parenta
shpaque
post
Post #1





Grupa: Zarejestrowani
Postów: 651
Pomógł: 3
Dołączył: 31.01.2011
Skąd: Warszawa

Ostrzeżenie: (10%)
X----


Witam, od razu dodam ze konsola nic nie zwraca- zawsze dzialalo - tutaj nie. Chodzi o to ze po nacisnieciu inputa (:focus) nie zmienia mi ustawien css formularza

  1. .search-home
  2. {
  3. position: relative;
  4. min-width: 300px;
  5. max-width: 92%;
  6. height: 60px;
  7. padding: 12px;
  8. margin: 13px 0 20px 0;
  9. border: solid 3px rgba(0, 0, 0, 0.15);
  10. border-radius: 50px;
  11. background: rgba(255, 255, 255, 0.25);
  12. color: black;
  13. overflow: hidden;
  14. }
  15.  
  16. .inputSearchHome
  17. {
  18. display: inline-block;
  19. float: left;
  20. width: 85%;
  21. padding: 5px 0 0 10px;
  22. font-family: "Open Sans";
  23. font-size: 15px;
  24. text-align: left;
  25. border: none;
  26. outline: none;
  27. background: transparent;
  28. color: #464646;
  29. }
  30.  
  31. .inputSearchHome:focus .search-home
  32. {
  33. background: rgba(255, 255, 255, 0.5);
  34. border: solid 3px red;
  35. }
  36.  
  37. .submitSearchHome
  38. {
  39. display: inline-block;
  40. float: right;
  41. margin: 0 10px 0 0;
  42. width: 10%;
  43. text-align: right;
  44. background: transparent;
  45. border: none;
  46. outline: none;
  47. color: rgba(255, 255, 255, 0.5);
  48. }
  49.  
  50. <form action="./search.php" method="get" class="search-home" name="widget-search-home">
  51. <input type="text" class="inputSearchHome" name="s" placeholder="Wyszukaj szkolenie" />
  52. <button type="submit" class="submitSearchHome"><span class="fa fa-search icon-md"></span></button>
  53. </form>


Ten post edytował shpaque 29.06.2018, 13:27:15
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 23.08.2025 - 04:51