habe momentan wieder ein CSS Problem.
Undzwar möchte ich in einer Spalte Boxen untereinander anordnen.
Leider entsteht kein Platz unter ihnen. Lediglich mit <br> entsteht ein Abstand.
1 2 3 4 5 6 7 8 9 10 11 | < div class = "content_right" > < div class = "box_right" > < div class = "box_top" >Login</ div > < div class = "box_middle" >Username</ div > </ div > < br /> < div class = "box_right" > < div class = "box_top" >Partner</ div > < div class = "box_middle" ></ div > </ div > </ div > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | .content_right { width: 250px; padding-right: 10px; float: right; padding-top:20px; } /** Boxen **/ box_right { float: right; padding-bottom: 20px; } .box_top { background: #CACACA; width: 240px; height: 30px; line-height: 30px; border-bottom: 1px solid #959595; font-weight: bold; font-size:13px; padding-right: 5px; padding-left: 5px; } .box_middle { background-color: #E8E8E8; height: auto; width: 240px; padding: 5px; } |