Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS] Problem z tlem pilne, Tlo problem
mrk9109
post 8.06.2010, 18:43:42
Post #1





Grupa: Zarejestrowani
Postów: 445
Pomógł: 3
Dołączył: 4.06.2010

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


Witam mam problem z ktorym nie moge sobie poradzic mam ustawione dla news2 height 85px i jezeli tresc newsa jest wieksza nic 85 px naklada mi tresc na news3 o to kod:
index
Kod
                                     <div class="news">
                 <div class="news-gora">
                                <div class="news-img"></div>
                                <div class="news-dodal">Autor:r  Date:</div>
                    </div>    
              <div class="news-title">
                     <b>Title</b>
               </div>    
               </div>
               <div class="news2">
               <div class="news-tresc">
                       <br>
                     Tresc newsa
                      </div>
                     </div>
                     <div class="news3">
                  <div class="news-stopka">
                            <div class="news-kom">Komenatrze</div>
                            <div class="news-czytaj"> Czytaj Wiecej</div>
                            </div>    
                                                     
                                      $adminaction
                                      </div>

CSS:
Kod
.news {  width: 300px; float: left; height: 40px; }
.news2 {  width: 300px; float: left; height: 85px; background-repeat: no-repeat; display: block; }
.news3 {  width: 300px; float: left; height: 10px; }
.news-gora {  width: 300px; float: left; }
.news-img { background-image: url(images/news.gif); background-repeat: no-repeat; width: 171px; height: 34px; float: left; }
.news-dodal {  width: 129px; float: left; }
.news-title {  width: 300px; float: left; }
.news-tresc {  width: 298px; float: left; }
.news-stopka{  width: 300px; float: left; }
.news-stopka a { color: black; }
.news-kom { background-color: #dadada; background-repeat: no-repeat; width: 100px; float: left;  padding-left: 15px; }
.news-czytaj { background-color: #dadada; background-repeat: no-repeat; width: 100px; float: left;  padding-left: 80px; }

Go to the top of the page
+Quote Post
potreb
post 8.06.2010, 18:47:10
Post #2





Grupa: Zarejestrowani
Postów: 1 568
Pomógł: 192
Dołączył: 7.03.2005
Skąd: Warszawa

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


Możesz użyć dla news2 overflow: hidden lub wywalić wysokość tak aby automatycznie się dopasowywała do treści.


--------------------

Go to the top of the page
+Quote Post
mrk9109
post 8.06.2010, 18:49:16
Post #3





Grupa: Zarejestrowani
Postów: 445
Pomógł: 3
Dołączył: 4.06.2010

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


overflow: hidden pomoglo dzieki wielkie 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 Wersja Lo-Fi Aktualny czas: 12.07.2025 - 20:43