Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] img obok linka
tenloginjestzaje...
post
Post #1





Grupa: Zarejestrowani
Postów: 358
Pomógł: 1
Dołączył: 20.07.2014

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


Witam
Mam mały problem, nie mogę ustawić pozycji img stosownie do linka, gdy w klasie img ustawiam absolute, top, left to img jest poza divem, który ustawiłem jako relative..

  1. <style>
  2. .showmenu{height:25px;width:25px;}
  3. .navi{padding:5px;}
  4. </style>
  5. <div class="navi">
  6. <img class="showmenu" alt="menu" src="../menu.png">
  7. <a href="">link</a>
  8. </div>


dzięki

Ten post edytował tenloginjestzajety 27.06.2017, 22:18:21


--------------------
Nigdy nie zapominam kliknąć "pomógł". Zastosowanie na stronie [prosze nie spamuj]
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Jarma
post
Post #2





Grupa: Zarejestrowani
Postów: 36
Pomógł: 11
Dołączył: 20.07.2009

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


  1. <style>
  2. .showmenu{
  3. height:25px;
  4. width:25px;
  5. float: left;
  6. }
  7. .navi{
  8. padding:5px;
  9. }
  10. a {
  11. line-height:25px;
  12. float: left;
  13. margin-left: 5px;
  14. }
  15. </style>
  16. <div class="navi">
  17. <img class="showmenu" alt="menu" src="../menu.png">
  18. <a href="">link</a>
  19. </div>

https://jsfiddle.net/w4xy3h8s/

Coś w tym stylu?
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 Aktualny czas: 21.08.2025 - 12:29