Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dodatkowy odstęp
bronx
post
Post #1





Grupa: Zarejestrowani
Postów: 333
Pomógł: 0
Dołączył: 4.03.2004

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


witam

mam taki problem, za każdym razem kiedy w kodzie strony użyje czegoś takiego:

Kod
<p style="margin-left: 0.2cm" style="margin-right: 0.2cm">jakiś tekst</p>


to przed tym napisem dodaje odstęp, tak jak bym napisał <br>jakiś tekst...

wie ktoś może dlaczego tak się dzieje questionmark.gifquestionmark.gif

pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
dr_bonzo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


<p> -- paragraf, akapit --> miedzy akapitami sa odstepy: to pewnie dlatego smile.gif


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
bronx
post
Post #3





Grupa: Zarejestrowani
Postów: 333
Pomógł: 0
Dołączył: 4.03.2004

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


no dobrze, ale jak tego uniknąć ? bo np. musze zachować ten margines.. pod IE to czasami nie ma tego odspępu, ale np. pod FireFox strasznie to wyglada... ma ktoś jakiś pomysł jak tego uniknąć questionmark.gif
Go to the top of the page
+Quote Post
ebe
post
Post #4





Grupa: Zarejestrowani
Postów: 150
Pomógł: 1
Dołączył: 23.01.2004

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


margin-top = 0;
margin-bottom = 0;

questionmark.gif


--------------------
Słyszałem, że macie tutaj jakieś takie php... fajne to, dobre to jest?
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Brakuje ci prawego marginesu? Niepoprawnie wstawiasz atrybuty do taga. Parametr style pmoze sie pojawic TYLKO RAZ, wyswietl sobie ten kod i porownaj:

  1. <p style="margin-left: 5cm; margin-right: 5cm">
  2. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris urna. Nullam non purus congue tellus interdum porttitor. Etiam posuere volutpat libero. Quisque pellentesque, lacus nec condimentum suscipit, libero urna interdum nulla, ac blandit elit dui vel augue. Ut purus libero, rhoncus vitae, commodo vel, semper a, elit. Morbi interdum, dui lobortis vehicula pellentesque, wisi dolor ultrices eros, ut ornare magna risus et turpis. Nulla blandit, arcu ut sollicitudin pellentesque, enim justo sollicitudin magna, placerat accumsan lacus leo congue risus. Fusce ultricies quam nec orci. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus euismod dictum urna. Donec congue massa vitae ligula dapibus convallis. Maecenas facilisis.
  3. </p>
  4. <p style="margin-left: 5cm" style="margin-right: 5cm">
  5. Sed eu leo vel risus vulputate fermentum. Nulla neque. In sed purus sit amet augue viverra dignissim. Etiam non felis ut est tincidunt tristique. Ut ut lectus. Nullam tincidunt nunc vel eros. Etiam ut massa ut wisi aliquet imperdiet. Mauris quam. Aliquam ac nulla id ipsum ornare vestibulum. Proin et risus a nibh pharetra adipiscing. Vestibulum in ligula a libero auctor consequat.
  6. </p>


Jesli nie chcesz miec odstepu miedzy akapitami to ich nie stosuj, uzj <br /> zamiast <p>


--------------------
Nie lubię jednorożców.
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 - 15:47