Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS]2 klasy w 1 divie, Tekst w 1 klasie jest wyzej niz w 2
Raven1122
post
Post #1





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


Witam potrzebuje pomocy, kombinuje już z clear, z pustym divem floatend o wartości clear:both;, display:inline i nie mogę znaleźć rozwiązania. Można to "zjawisko zobaczyć na głównej stronie bassplay.xaa.pl, a mianowicie chciałbym aby obydwa teksty lorem ipsum znajdowaly sie w 1 linii

CSS:
.leftside {
width:380px;
height:100%;
padding-left:10px;
padding-right:10px;
clear:right;
padding-bottom:15px;
margin-left:50px;
}

i

.rightside {
width:380px;
overflow:hidden;
height:100%;
padding-left:10px;
padding-right:10px;
padding-bottom:15px;
margin-left:530px;
}

Ten post edytował Raven1122 9.08.2011, 13:06:41
Go to the top of the page
+Quote Post
luckyps
post
Post #2





Grupa: Zarejestrowani
Postów: 153
Pomógł: 41
Dołączył: 28.06.2011
Skąd: Częstochowa

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


Chodzi Ci zeby byly obie kolumny na jednym poziomie ?
  1. .leftside {
  2. width:380px;
  3. height:100%;
  4. padding-left:10px;
  5. padding-right:10px;
  6. /*clear:right;*/
  7. float: left;
  8. padding-bottom:15px;
  9. margin-left:50px;
  10. }
Go to the top of the page
+Quote Post
Raven1122
post
Post #3





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


Dzieki za pomoc, daje pomogl smile.gif

ponowny problem, tym razem wygląda tak ze w klasie profile_left jest obrazek a w klasie profile_right jest treść. Próbowałem zrobić tak jak w poprzednim przykładzie ale niestety to nie działa sad.gif

Kod:
  1. .profile_top {
  2. background:url(../images/profile_top.jpg);
  3. width:600px;
  4. height:32px;
  5. text-align:center;
  6. color:#fff;
  7. border-top:1px #000 solid;
  8. border-left:1px #000 solid;
  9. border-right:1px #000 solid;
  10. }
  11.  
  12. .profile_rectangle {
  13. background:#2c5c90;
  14. width:600px;
  15. height:130px;
  16. border:1px #000 solid;
  17. }
  18.  
  19. .profile_left {
  20. width:130px;
  21. height:100%;
  22. padding-left:5px;
  23. padding-right:5px;
  24. clear:right;
  25. float:left;
  26. padding-bottom:5px;
  27. padding-top:5px;
  28. margin-left:50px;
  29.  
  30. }
  31.  
  32. .profile_right {
  33. width:470px;
  34. overflow:hidden;
  35. height:130px;
  36. padding-left:10px;
  37. padding-right:10px;
  38. padding-bottom:15px;
  39. margin-left:530px;
  40.  
  41.  
  42. }
Go to the top of the page
+Quote Post
luckyps
post
Post #4





Grupa: Zarejestrowani
Postów: 153
Pomógł: 41
Dołączył: 28.06.2011
Skąd: Częstochowa

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


Mozesz to gdzies na www wrzucic zeby lepiej zobrazowac ?
Go to the top of the page
+Quote Post
Raven1122
post
Post #5





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


http://bassplay.xaa.pl/viewpage.php?id=2
Go to the top of the page
+Quote Post
luckyps
post
Post #6





Grupa: Zarejestrowani
Postów: 153
Pomógł: 41
Dołączył: 28.06.2011
Skąd: Częstochowa

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


  1. .profile_right {
  2. height: 130px;
  3. overflow: hidden;
  4. padding-bottom: 15px;
  5. padding-left: 10px;
  6. padding-right: 10px;
  7. width: 300px;
  8. }


Za duza szerokosc tego diva byl + niepotrzebny margin wink.gif
Go to the top of the page
+Quote Post
Raven1122
post
Post #7





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


Dziękuje jeszcze raz smile.gif
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 - 08:14