Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]Jak sprawić, aby div umieszczony w liście miał jej wysokość ?
--Gumis--
post 18.07.2011, 00:18:31
Post #1





Goście







Od kilku godzin głowię się z tym problemem, mam kodzik w stylu:

  1. <div style="width:200px">
  2. <ul>
  3. <li style="background:#ccc;">
  4. <div class="tutaj" style="display: inline; height: 100%; background:#fff;">1</div>
  5. <a href="" target="_blank" style="color: rgb(0, 0, 0);">sssss ssssss - dddddd ddddddd</a>
  6. </li>
  7. <li style="background:#ccc;">
  8. <div style="display: inline;">2</div>
  9. <a href="" target="_blank" style="color: rgb(0, 0, 0);">sssss ssssss - dddddd ddddddd</a>
  10. </li>
  11. </ul>
  12. </div>


Efekt widoczny tutaj: http://91.228.196.82/list.php

Chciałbym aby ten czerwony element oznaczony 1, był wysokości tego czarnego <li>, ale za chiny nie mogę tego zrobić.

Czy wie ktoś jak tego dokonać ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
--Gumis--
post 18.07.2011, 00:21:30
Post #2





Goście







Żaby było wszystko jasne kod z przykładu się lekko różni kolorami, oto aktualny kod:

  1. <div style="width:200px">
  2. <ul>
  3. <li style="background:#000;">
  4. <div class="tutaj" style="display: inline; height: 100%; background:#ff0000;">1</div>
  5. <a href="" target="_blank" style="color: rgb(0, 0, 0);">sssss ssssss - dddddd ddddddd</a>
  6. </li>
  7. <li>
  8. <div style="display: inline;">2</div>
  9. <a href="" target="_blank" style="color: rgb(0, 0, 0);">sssss ssssss - dddddd ddddddd</a>
  10. </li>
  11. </ul>
  12. </div>
Go to the top of the page
+Quote Post
--Gumis--
post 18.07.2011, 18:56:12
Post #3





Goście







Refresh
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: 14.08.2025 - 10:38