Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

2 Stron V   1 2 >  
Reply to this topicStart new topic
> [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
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

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: 3.10.2025 - 01:43