Hallo liebes Forum,
ich bin noch ein totaler html und css anfänger und sitze gerade an folgendem Problem fest:
ich habe vor meine "Section" wie eine Schriftrolle aussehen zu lassen.
anfangs wollte ich dass sich die breite automatisch an die breite des browsers anpasst.
mit width 80% lies sich das gut machen allerdings gab es nur unschöne verformungen was den Rahmen der Section anging (da es n bild war).
ok also feste größe definiert.
nun sah es schon ganz hübsch aus, leider klappt es nicht so ganz mit dem unterem Ende.
der gesamte text der Section wird unter das Abschlussbild angeheftet und nicht zwischen dem oberen und unterem Bild.
als nächste Frage hätte ich noch, wie ich es mache dass links und rechts die Rahmenbilder sich nach unten wiederholen.
hier mal meine html:
<section>
<div id="txtfeld">
<img class="txto" src="txto.png" border="0">
<img class="txtlinks" src="txtli.png" border="0">
<img class="txtrechts" src="txtre.png" border="0">
<img class="txtu" src="txtu.png" border="0">
<article>
<p><img src="raggi1.png" alt="Bild von Ragnaros" title="Raggi die Wuz!" />
<h2> News </h2>
<p> hier erscheinen die News/Infos</p>
<p>infoinfoinfoinfoinfo</p>
<p>newsnewsnewsnewsnews</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
</p>
</article>
<article>
<h2> Dies ist ein weiterer Infobereich</h2>
<p> hier stehen ältere news</p>
</article>
</section>
und zur totalen verwirrung die css datei:
section{
float: left;
width: 840px;
}
.txtlinks{
position: static;
float: left;
margin-top: -5px;
}
.txtrechts {
position: static;
float: right;
margin-top: -5px;
margin-right: -10px;
}
.txto{
position: static;
}
.txtu{
float: left;
margin-bottom: 0px;
}
article {
margin-left: 20px;
margin-right: 30px;
padding: 30px;
background-color: #FFCD84;
margin-top: -10px;
margin-bottom: 0px;
min-width: 450px;
}
article h2{
font-style: oblique;
font-size: 20px;
padding-bottom: 5px;
}
article p{
font-family: Times;
font-size: 20px;
text-align: left;
padding-bottom: 3px;
padding-left: 5px;
}
article img{
border: #000000 5px ridge;
float: right;
width: 320px;
height: 240px;
text-align: right;
}
ich bin noch ein totaler html und css anfänger und sitze gerade an folgendem Problem fest:
ich habe vor meine "Section" wie eine Schriftrolle aussehen zu lassen.
anfangs wollte ich dass sich die breite automatisch an die breite des browsers anpasst.
mit width 80% lies sich das gut machen allerdings gab es nur unschöne verformungen was den Rahmen der Section anging (da es n bild war).
ok also feste größe definiert.
nun sah es schon ganz hübsch aus, leider klappt es nicht so ganz mit dem unterem Ende.
der gesamte text der Section wird unter das Abschlussbild angeheftet und nicht zwischen dem oberen und unterem Bild.
als nächste Frage hätte ich noch, wie ich es mache dass links und rechts die Rahmenbilder sich nach unten wiederholen.
hier mal meine html:
<section>
<div id="txtfeld">
<img class="txto" src="txto.png" border="0">
<img class="txtlinks" src="txtli.png" border="0">
<img class="txtrechts" src="txtre.png" border="0">
<img class="txtu" src="txtu.png" border="0">
<article>
<p><img src="raggi1.png" alt="Bild von Ragnaros" title="Raggi die Wuz!" />
<h2> News </h2>
<p> hier erscheinen die News/Infos</p>
<p>infoinfoinfoinfoinfo</p>
<p>newsnewsnewsnewsnews</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
</p>
</article>
<article>
<h2> Dies ist ein weiterer Infobereich</h2>
<p> hier stehen ältere news</p>
</article>
</section>
und zur totalen verwirrung die css datei:
section{
float: left;
width: 840px;
}
.txtlinks{
position: static;
float: left;
margin-top: -5px;
}
.txtrechts {
position: static;
float: right;
margin-top: -5px;
margin-right: -10px;
}
.txto{
position: static;
}
.txtu{
float: left;
margin-bottom: 0px;
}
article {
margin-left: 20px;
margin-right: 30px;
padding: 30px;
background-color: #FFCD84;
margin-top: -10px;
margin-bottom: 0px;
min-width: 450px;
}
article h2{
font-style: oblique;
font-size: 20px;
padding-bottom: 5px;
}
article p{
font-family: Times;
font-size: 20px;
text-align: left;
padding-bottom: 3px;
padding-left: 5px;
}
article img{
border: #000000 5px ridge;
float: right;
width: 320px;
height: 240px;
text-align: right;
}