Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Tekst w dwoch kolumnach
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
TheGuardian
Witam.
Jak osiagnac taki efekt: http://img406.imageshack.us/img406/8009/problemqm.jpg ?
Chodzi o ten odstep miedzy lewym brzegiem kolumny a tekstem. Nic mi nie przychodzi do glowy.

Pozdrawiam.
pedro84
Poprzez nadanie odpowiedniego marginesu dla obrazka oraz
  1. float:left;
mortus
Dodam jeszcze, że to w jednej kolumnie jest, a nie w dwóch.
Wicepsik
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <style type="text/css">
  3. .obrazek {
  4. float: left;
  5. margin: 10px;
  6. }
  7. #tresc {
  8. width: 500px;
  9. }
  10. #tresc p {
  11. clear: right;
  12. padding-left: 30px;
  13. }
  14. </head>
  15. <div id="tresc">
  16. <img src="1.jpg" class="obrazek">
  17. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  18. </div>
  19. </body>
  20. </html>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.