Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML] lista ul i li, wstyd...
Lejto
post
Post #1





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


Mam prosty kod listy ul
  1. <ul style=" display:block;list-style:none;text-align:left">
  2. <li>aaaaaa</li>
  3. </ul>

wszystko jest ok tylko wyświetla tak

(przerwa) aaaaaa
a ja chce żeby wyświetlało tak

aaaaa

bawiłem się już ze stylami ale nic nie mogę zrobić, czy już taki głupi jestem czy zapomniałem już jako to się robi...
Go to the top of the page
+Quote Post
2 Stron V   1 2 >  
Start new topic
Odpowiedzi (1 - 35)
artur_dziocha
post
Post #2





Grupa: Zarejestrowani
Postów: 320
Pomógł: 53
Dołączył: 18.09.2007
Skąd: Radom

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


display:block; chyba powinno byc w <li>
Go to the top of the page
+Quote Post
Lejto
post
Post #3





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


zrobiłem tak i nadaj jest przerwa
Go to the top of the page
+Quote Post
artur_dziocha
post
Post #4





Grupa: Zarejestrowani
Postów: 320
Pomógł: 53
Dołączył: 18.09.2007
Skąd: Radom

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


ul {
margin: 0px;
padding: 0px;
}
li {
list-style-type: none;
display: block;
margin: 0px;
padding: 0px;
}

Ten post edytował artur_dziocha 31.12.2008, 11:33:09
Go to the top of the page
+Quote Post
Lejto
post
Post #5





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


też nic
Go to the top of the page
+Quote Post
Rudi1204
post
Post #6





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


a wrzuć to sobie do div'a np i sprawdz :]
  1. <div style="width:50px; height:50px; background:red;>
  2. <ul style=" display:block;list-style:none;text-align:left">
  3. <li>aaaaaa</li>
  4. </ul>
  5. </div>
Go to the top of the page
+Quote Post
Lejto
post
Post #7





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


@Rudi1204 zadziałało ale muszę to jeszcze do menu dodać, zobaczę czy będzie tak jak powinno

ok działa jak powinno
  1. <div style="width:190px;">
  2. <span class="le"></span>
  3. <span class="sr"> <p style="margin-top:2px">&raquo; Menu </p></span>
  4. <span class="pr">&nbsp;</span>
  5.  
  6. <div style="width:190px; height:50px;>
  7.  
  8. <ul style="display:block;list-style:none; background-color:#FFF; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  9. <li><a href="index.php" id="glowna"><img src="images/arrowbullet.png" border="0">Strona główna</a> </li>
  10. //
  11. </ul>
  12. <span class="le_d"></span>
  13. <span class="sr_d"></span>
  14. <span class="pr_d"></span>
  15. </div>

dobry kod?
Go to the top of the page
+Quote Post
Rudi1204
post
Post #8





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
Lejto
post
Post #9





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


ale jeszcze chwila chwila (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
jeszcze nie działa tak jak powinno
  1. <div style="width:190px;">
  2. <span class="le"></span>
  3. <span class="sr"> <p style="margin-top:2px">&raquo; Menu </p></span>
  4. <span class="pr">&nbsp;</span>
  5.  
  6. <div style="width:190px; height:50px;> <--------- tu nie ma na końcu " a jak dodam " to znów nie chodzi tak jak powinno
  7.  
  8. <ul style="display:block;list-style:none; background-color:#FFF; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  9. <li><a href="index.php" id="glowna"><img src="images/arrowbullet.png" border="0">Strona główna</a> </li>
  10. //
  11. </ul>
  12. <span class="le_d"></span>
  13. <span class="sr_d"></span>
  14. <span class="pr_d"></span>
  15. </div>

w tym divie nie mam na końcu " a jak dodam " to znów nie chodzi tak jak powinno (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
Rudi1204
post
Post #10





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


  1. <div style="width:190px; background:red;">
  2. <span class="le"></span>
  3. <span class="sr">
  4. <p style="margin-top:2px">&raquo; Menu</p>
  5. </span>
  6. <span class="pr">&nbsp;</span>
  7.  
  8. <div style="width:190px; height:50px;>
  9.  
  10. <ul style="display:block; list-style:none; background-color:#ffffff; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  11. <li><a href="index.php" id="glowna">
  12. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  13. </a></li>
  14. </ul>
  15.  
  16. <span class="le_d"></span>
  17. <span class="sr_d"></span>
  18. <span class="pr_d"></span>
  19. </div>
  20. </div>

nie bardzo wiem czy o to Tobie chodzi ale u mnie działa ok :]

Ten post edytował Rudi1204 31.12.2008, 12:08:30
Go to the top of the page
+Quote Post
Lejto
post
Post #11





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


no działa tak jak wtedy ale chodzi o tego diva " <div style="width:190px; height:50px;> " nie ma na końcu style " a jak to się doda to znów lipa a bez tego jest ok. Rozumiesz?
Go to the top of the page
+Quote Post
Rudi1204
post
Post #12





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


mistrzu mała uwaga nawet sam nie zauważyłem :/ zamiast
  1. <div style="width:190px; height:50px;>
powinno być
  1. <div style="width:190px; height:50px;">
widzisz różnice?? hehe pewnie nie więc napisze po 50px; nie miałeś apostrofa!! " ściągnij kod co ci wczesnieij napisałem dorzuć apostrof i będzie ok (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Ten post edytował Rudi1204 31.12.2008, 12:17:56
Go to the top of the page
+Quote Post
Lejto
post
Post #13





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


nauczycielu (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
o tym " cały czas pisze jak to dodam to włśnie nie działa tak jak powinno a bez tego działa (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

  1. <div style="width:190px; height:50px;>

działa

  1. <div style="width:190px; height:50px;">


nie działa

div chyba nie pomoże chyba trzeba napisać jakiś styl do ul

Ten post edytował Lejto 31.12.2008, 12:21:29
Go to the top of the page
+Quote Post
Rudi1204
post
Post #14





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


wklep sobie to i napisz co wyszło :]
  1. <div style="width:190px; background:red;">
  2. <span class="le"></span>
  3. <span class="sr">
  4. <p style="margin-top:2px">&raquo; Menu</p>
  5. </span>
  6. <span class="pr">&nbsp;</span>
  7.  
  8. <div style="width:190px; height:50px;">
  9.  
  10. <ul style="display:block; list-style:none; background-color:#ffffff; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  11. <li><a href="index.php" id="glowna">
  12. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  13. </a></li>
  14. </ul>
  15.  
  16. <span class="le_d"></span>
  17. <span class="sr_d"></span>
  18. <span class="pr_d"></span>
  19. </div>
  20. </div>
Go to the top of the page
+Quote Post
Lejto
post
Post #15





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


lipa tak jak na początku, jest przerwa
Go to the top of the page
+Quote Post
Rudi1204
post
Post #16





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


i tak też działa ;pp
  1. <div style="width:190px; background:red;">
  2. <span class="le"></span>
  3. <span class="sr">
  4. <p style="margin-top:2px">&raquo; Menu</p>
  5. </span>
  6. <span class="pr">&nbsp;</span>
  7.  
  8.  
  9. <ul style="display:block; list-style:none; background-color:#ffffff; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  10. <li><a href="index.php" id="glowna">
  11. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  12. </a></li>
  13. </ul>
  14.  
  15. <span class="le_d"></span>
  16. <span class="sr_d"></span>
  17. <span class="pr_d"></span>
  18. </div>


jakoś nie wiem dlaczego ale cieżko mi zrozumieć jaki chcesz uzyskać efekt ale może takie cos?? (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) :D
  1. <div style="width:190px; background:red;">
  2. <p style="margin-top:2px; margin-bottom:0">&raquo; Menu</p>
  3.  
  4. <ul style="margin:0; display:block; list-style:none; background-color:#ffffff; border: 2px solid #cc9933;" id="sidelinks" class="arrowlistmenu" >
  5. <li><a href="index.php" id="glowna">
  6. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  7. </a></li>
  8. <li><a href="index.php" id="glowna">
  9. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  10. </a></li>
  11. </ul>
  12. </div>
Go to the top of the page
+Quote Post
Lejto
post
Post #17





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


a mi to nie działa (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) jest przerwa daj screena bo nie wierze (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
html jest normalnie trudniejszy od php... (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
Rudi1204
post
Post #18





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


(IMG:http://rudi1204.w.interia.pl/01.jpg)
Go to the top of the page
+Quote Post
Lejto
post
Post #19





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


no tak ale ja właśnie nie chce mieć tej przerwy (pusto) Strona główna
tak nie
(IMG:http://img166.imageshack.us/img166/8466/zal2rk4.gif)

tak chce
(IMG:http://img367.imageshack.us/img367/9762/zalof5.gif)

kumasz?
Go to the top of the page
+Quote Post
Rudi1204
post
Post #20





Grupa: Zarejestrowani
Postów: 37
Pomógł: 2
Dołączył: 11.03.2007

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


kumam kumam ale teraz qrde nie bardzo mam czas :/ ale nie bede taki i pozostawiam linka moze pomoze :]
http://css.maxdesign.com.au/index.htm

a to tak zanim znikne :]
  1. <div style="width:190px; background:red;">
  2. <p style="margin-top:2px; margin-bottom:0">&raquo; Menu</p>
  3.  
  4. <ul style="margin:0; display:inline; list-style:none;" id="sidelinks" class="arrowlistmenu" >
  5. <li style="display:block;background-color:#ffffff; border: 2px solid #cc9933;"><a href="index.php" id="glowna">
  6. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;" alt="#" />Strona główna
  7. </a></li>
  8. <li style="display:block;background-color:#ffffff; border: 2px solid #cc9933;"><a href="index.php" id="nastepna">
  9. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;" alt="#" />Strona główna
  10. </a></li>
  11. </ul>
  12. </div>
Go to the top of the page
+Quote Post
Lion_87
post
Post #21





Grupa: Zarejestrowani
Postów: 850
Pomógł: 120
Dołączył: 15.02.2007
Skąd: Łódź

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


a margin, padding??

  1. ul, ul li {
  2. display: block;
  3. list-style: none;
  4. margin: 0;
  5. padding: 0;
  6. }
  7.  
  8. <div style="width:190px; background:red;">
  9. <span class="le"></span>
  10. <span class="sr">
  11. <p style="margin-top:2px">&raquo; Menu</p>
  12. </span>
  13. <span class="pr">&nbsp;</span>
  14.  
  15. <div style="width:190px; height:50px;">
  16.  
  17. <ul id="sidelinks" class="arrowlistmenu" >
  18. <li><a href="index.php" id="glowna">
  19. <img src="http://forum.php.pl/style_emoticons/default/biggrin.gif" style="border:0; width:20px; height:20px;">Strona główna
  20. </a></li>
  21. </ul>
  22.  
  23. <span class="le_d"></span>
  24. <span class="sr_d"></span>
  25. <span class="pr_d"></span>
  26. </div>
  27. </div>
Go to the top of the page
+Quote Post
piotrooo89
post
Post #22


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




ja wyskrobałem coś takiego:

  1. <style type="text/css">
  2. ul
  3. {
  4. list-style: none;
  5. display: inline;
  6. }
  7. li
  8. {
  9. display: block;
  10. }
  11. Menu
  12. <ul>
  13. <li>Memu1</li>
  14. <li>Memu1</li>
  15. </ul>
Go to the top of the page
+Quote Post
Lejto
post
Post #23





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


@Rudi1204, działa ale
powstała przerwa przez display:inline;
(IMG:http://img367.imageshack.us/img367/28/zalplwe1.gif)
zobacze jeszcze twoje @piotrooo89 i @Lion_87

Ten post edytował Lejto 31.12.2008, 13:17:13
Go to the top of the page
+Quote Post
piotrooo89
post
Post #24


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




pokaż jak to robisz... kod.
Go to the top of the page
+Quote Post
Lejto
post
Post #25





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


całość + Rudi1204
  1. .le{background: url('images/lewo.gif');background-repeat: no-repeat;width: 15px;height: 23px;float: left;}
  2. .sr{background: url('images/srodek.gif'); background-repeat:repeat; width:160px; height:23px; float:left;}
  3. .sr{font-size:12px; font-weight:bold; vertical-align:bottom;}
  4. .pr{background: url('images/prawo.gif'); background-repeat: no-repeat; width:15px; height:23px; float: right;}
  5.  
  6.  
  7. .le_d{background: url('images/border-l.gif');background-repeat: no-repeat; width: 12px; height: 10px;float: left;}
  8. .sr_d{background-image : url('images/border-c.gif');background-repeat:repeat; height:10px; width:163px; float: left;}
  9. .pr_d{background-image : url('images/border-r.gif');background-repeat: no-repeat; width:15px; height:23px; float: right;}
  10.  
  11.  
  12. <div style="width:190px;">
  13. <span class="le"></span>
  14. <span class="sr"> <p style="margin-top:2px">&raquo; Menu </p></span>
  15. <span class="pr">&nbsp;</span>
  16.  
  17.  
  18. <ul style="margin:0; display:inline; list-style:none;" id="sidelinks" class="arrowlistmenu" >
  19. <li><a href="index.php" id="glowna"><img src="images/arrowbullet.png" border="0">Strona główna</a> </li>
  20. <li><a href='?co=ksiegaw' id="ksiega"><img src="images/arrowbullet.png" border="0"> Księga gości</a> </li>
  21.  
  22. </ul>
  23. <span class="le_d"></span>
  24. <span class="sr_d"></span>
  25. <span class="pr_d"></span>
  26. </div>
Go to the top of the page
+Quote Post
kazag
post
Post #26





Grupa: Zarejestrowani
Postów: 180
Pomógł: 12
Dołączył: 30.04.2007

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


aaa widzisz, a daj linkom w <li> margin-left:0px;
miałem ten sam problem.

btw. list-style:none; daje się do ul czy li?
Go to the top of the page
+Quote Post
erix
post
Post #27





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Kod
<span class="sr"> <p style="margin-top:2px">&raquo; Menu </p></span>

Daj dla .sr styl overflow: hidden.
Go to the top of the page
+Quote Post
Lejto
post
Post #28





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


to w końcu co z tego kodu wywalić a co dodać? bo już sam nie wiem margines ustawiłem na 0px....
Go to the top of the page
+Quote Post
erix
post
Post #29





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Przecież podałem, co zmienić, aby nie robiło przerwy.
Go to the top of the page
+Quote Post
Lejto
post
Post #30





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


nic nie pomogło
Go to the top of the page
+Quote Post
erix
post
Post #31





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Pokaż, co zmieniłeś.
Go to the top of the page
+Quote Post
Lejto
post
Post #32





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


mam tak:
  1. .le{background: url('images/lewo.gif');background-repeat: no-repeat;width: 15px;height: 23px;float: left;overflow:hidden;}
  2. .sr{background: url('images/srodek.gif'); background-repeat:repeat;overflow:hidden; width:160px; height:23px; float:left;overflow:hidden;}
  3. .sr{font-size:12px; font-weight:bold; vertical-align:bottom; overflow:hidden;}
  4. .pr{background: url('images/prawo.gif'); background-repeat: no-repeat; width:15px; height:23px; float: right;overflow:hidden;}
  5.  
  6.  
  7. .le_d{background: url('images/border-l.gif');background-repeat: no-repeat; width: 12px; height: 10px;float: left;}
  8. .sr_d{background-image : url('images/border-c.gif');background-repeat:repeat; height:10px; width:163px; float: left;}
  9. .pr_d{background-image : url('images/border-r.gif');background-repeat: no-repeat; width:15px; height:23px; float: right;}
  10.  
  11.  
  12.  
  13. <div style="width:190px;">
  14. <span class="le"></span>
  15. <span class="sr"> <p style="margin-top:2px">&raquo; Menu </p></span>
  16. <span class="pr">&nbsp;</span>
  17.  
  18.  
  19. <ul style="margin-left:0px; display: inline; list-style:none;" id="sidelinks" class="arrowlistmenu" >
  20. <li><a href="index.php" id="glowna"><img src="images/arrowbullet.png" border="0">Strona główna</a> </li>
  21. <li><a href='?co=ksiegaw' id="ksiega"><img src="images/arrowbullet.png" border="0"> Księga gości</a> </li>
  22.  
  23. </ul>
  24. <span class="le_d"></span>
  25. <span class="sr_d"></span>
  26. <span class="pr_d"></span>
  27. </div>

wszystko jest ok tylko są te odstępy jak pokazałem na screenie
Go to the top of the page
+Quote Post
Lion_87
post
Post #33





Grupa: Zarejestrowani
Postów: 850
Pomógł: 120
Dołączył: 15.02.2007
Skąd: Łódź

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


daj do stylu <p>
Kod
padding: 0;margin: 0;
Go to the top of the page
+Quote Post
Lejto
post
Post #34





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


nic nie dało, przecież <p> i jego styl należy do "Menu"
Go to the top of the page
+Quote Post
Lion_87
post
Post #35





Grupa: Zarejestrowani
Postów: 850
Pomógł: 120
Dołączył: 15.02.2007
Skąd: Łódź

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


to może skasuj w ul styl i daj w <style>
Kod
ul, ul li {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
Go to the top of the page
+Quote Post
Lejto
post
Post #36





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


działa (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) dzięki, wydaje mi się że już tak robiłem, ale tyle z tym mieszałem...
Go to the top of the page
+Quote Post

2 Stron V   1 2 >
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: 4.10.2025 - 00:52