HTML& CSS Problem mit Boxen!
Problem mit Boxen!
Hallo leute,
Ich habe hier eine Box:
Box Layout:
Und der zugehörige CSS Teiel dazu:
Mein Problem ist das der Text nicht in den Boxen bleibt sondern drüber geht.
Screenshot:
http://www.bilder-space.de/bilder/561d94-1268161528.png
Kann mir wer den Code richtig schreiben?
Ich blicke da nicht durch °_°
Danke,
Jucy
Ich habe hier eine Box:
Box Layout:
|
|
Quellcode |
1 2 3 |
<div id="boxtop"><br>{TITLE}</div>
<div id="boxmid">{BODY}</div>
<div id="boxbot"></div>
|
Und der zugehörige CSS Teiel dazu:
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#boxtop {
background-image: url(img_tem/box_klein_top.PNG);
width: 219px;
height: 38px;
text-align: center;
}
#boxmid {
background-image: url(img_tem/box_klein_mid.PNG);
width: 219px;
padding-left: 2px;
padding-right: 2px;
}
#boxbot {
background-image: url(img_tem/box_klein_bot.PNG);
width: 219px;
height: 18px;
}
|
Mein Problem ist das der Text nicht in den Boxen bleibt sondern drüber geht.
Screenshot:
http://www.bilder-space.de/bilder/561d94-1268161528.png
Kann mir wer den Code richtig schreiben?
Ich blicke da nicht durch °_°
Danke,
Jucy
Versuch es mal mit diesem:
|
|
Quellcode |
1 2 3 |
<div id="boxtop"><br><p class="text">{TITLE}</p></div>
<div id="boxmid"><p class="text">{BODY}</p></div>
<div id="boxbot"></div>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#boxtop {
background-image: url(img_tem/box_klein_top.PNG);
width: 219px;
height: 38px;
text-align: center;
}
p.text {
margin-left:5px;
}
#boxmid {
background-image: url(img_tem/box_klein_mid.PNG);
width: 219px;
padding-left: 2px;
padding-right: 2px;
}
#boxbot {
background-image: url(img_tem/box_klein_bot.PNG);
width: 219px;
height: 18px;
}
|
Naklar..
Bitteschön http://www.bilder-space.de/bilder/dcd993-1268163892.png
//Edit: Grad gesehen das ist kein Balken, sondern der letzte teil des Contents anscheind...why hat der sich verschoben?
Bitteschön http://www.bilder-space.de/bilder/dcd993-1268163892.png
//Edit: Grad gesehen das ist kein Balken, sondern der letzte teil des Contents anscheind...why hat der sich verschoben?
Ersetze:
Mit:
//Edit Wegen den margin-top:-1px; von p.text ..
|
|
Quellcode |
1 2 3 4 5 |
#boxbot {
background-image: url(img_tem/box_klein_bot.PNG);
width: 219px;
height: 18px;
}
|
Mit:
|
|
Quellcode |
1 2 3 4 5 6 |
#boxbot {
margin-top:-1px;
background-image: url(img_tem/box_klein_bot.PNG);
width: 219px;
height: 18px;
}
|
//Edit Wegen den margin-top:-1px; von p.text ..
Ähnliche Themen
-
Release »-
IV4 Transaktionensystem 0.2 Beta
(22. Dezember 2009, 07:12)
-
Sonstiges »-
Boxen mit Javascript verschieben/speichern
(23. Dezember 2009, 11:38)
-
Archiv »-
Layer Status "Immer Sichtbar"
(4. März 2009, 16:42)
-
Archiv »-
Problem mit den Boxen in IV 4
(27. Februar 2009, 11:27)
