Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS]prawa linia
Ruch Radzionków
post 27.04.2012, 21:56:03
Post #1





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

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


witam mam problem otóż mam taki kod css
Kod
#srodek {
    width: 1130px;
    overflow:hidden;
    margin:0px auto;
    height: 550px;
    height: auto !important;
    min-height: 550px;
    background-color:#E1E1E1;
    border-left: 2px solid #D2D2D2;
    border-right: 2px solid #D2D2D2;
    border-top: 2px solid #D2D2D2;
    border-bottom: 2px solid #D2D2D2;
    border-top-left-radius:3px;
    border-bottom-left-radius:3px;
    border-bottom-right-radius:3px;
    border-top-right-radius:3px;
    padding:10px;
}
#left {
    margin-left:10px;
    width:250px;
    float:left;
    text-align:left;
    overflow:hidden;
}
#center {
    width:590px;
    float:left;
    text-align:left;
    overflow:hidden;
    border-left:2px solid #696969;
    border-right:2px solid #696969;
    border-bottom:2px solid #696969;
    border-top:2px solid #696969;
    border-top-right-radius:10px;
    border-top-left-radius:10px;
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
    margin-left:10px;
    background:#959595;
}
#right {
    margin-left:10px;
    width:250px;
    float:left;
    text-align:left;
    overflow:hidden;
}
#rightmenu {
    width:100%;
    border-left:2px solid #696969;
    border-right:2px solid #696969;
    border-bottom:2px solid #696969;
    border-top-right-radius:10px;
    border-top-left-radius:10px;
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
    border-top:2px solid #696969;
    background:#959595;
    margin-bottom:10px;
    font-size:10pt;
    text-align:center;
}

oraz taki kod html:
  1. <div id="srodek">
  2. <div id="left"><div id="rightmenu"><div id="menurightpogrubienie">lewa</div>text</div>
  3. </div>
  4. </div>
  5. <div id="center"><div id="menurightpogrubienie">srodek</div>
  6. text</div>
  7. <div id="right">
  8. <div id="rightmenu"><div id="menurightpogrubienie">prawa</div>
  9. </div>
  10. </div>

i mam taki problem otórz nie pokazuje mi prawej lini w "lewe" oraz "prawa"
srodek normalnie pokazuje wie ktoś dlaczego się tak dzieje


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post
Aresor
post 27.04.2012, 22:25:06
Post #2





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 27.04.2012

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


Możesz dodać screena jak to dokładnie wygląda?
Go to the top of the page
+Quote Post
Ruch Radzionków
post 27.04.2012, 22:31:12
Post #3





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

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


http://imageshack.us/photo/my-images/16/stylh.jpg/


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post
vieri_pl
post 27.04.2012, 22:52:19
Post #4





Grupa: Zarejestrowani
Postów: 406
Pomógł: 9
Dołączył: 24.07.2005
Skąd: Bydgoszcz

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


Pamiętaj, że border idą na zewnątrz, a nie do środka. Bynajmniej bez wartości -inside. Zmniejsz szerokość bloku o wartość bocznego border x2
Go to the top of the page
+Quote Post
Ruch Radzionków
post 27.04.2012, 23:22:35
Post #5





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

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


jezeli chodzi o width to zmiejszylem i nic

Ten post edytował Ruch Radzionków 27.04.2012, 23:23:15


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post
vieri_pl
post 27.04.2012, 23:38:06
Post #6





Grupa: Zarejestrowani
Postów: 406
Pomógł: 9
Dołączył: 24.07.2005
Skąd: Bydgoszcz

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


Skasuj overflow: hidden z lewej kolumny
Go to the top of the page
+Quote Post
Niktoś
post 27.04.2012, 23:47:50
Post #7





Grupa: Zarejestrowani
Postów: 1 195
Pomógł: 109
Dołączył: 3.11.2011

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


Na tym szarym tle(container?) ,może być overflow:hidden-ten css który podałeś chyba nie jest w całości.
Po tym:
  1. margin:0px auto;
  2. height: 550px;
  3. height: auto !important;
  4. min-height: 550px;


to mam wrażenie ,że w ogóle nie wiesz co robisz i kombinujesz jak łysy koń pod górę.

Ten post edytował Niktoś 28.04.2012, 00:00:10
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: 13.08.2025 - 22:19