Ich möchte den Block innercontent rechts ausgerichtet haben, aber irgendwie klappt es nicht.
Code
<body>
<div id="content"><div class="rightborder">
<div class="innercontent">
Hier steht Text
</div>
</div></div>
</body>
Code
body {
background: #E0E0E0;
height: 100%;
margin: 0px;
line-height: 120%;
}
#content {
position: absolute;
left: 50%;
width: 776px;
margin-left: -388px;
background: url(left_border.jpg) left repeat-y;
background-color: #FF0000;
}
#content .rightborder {
width: 767px;
margin-left: 9px;
background: url(right_border.jpg) right repeat-y;
background-color: #00FF00;
float: right;
}
.innercontent {
width: 650px;
background-color: #0000FF;
}
Alles anzeigen