Pro2k
2004-03-22, 15:35:41
Ich bin gerade dabei mich näher mit CSS zu beschäftigen um von den Tabellen weg zu kommen. Jetzt häng ich aber, ich hab mir einen einen "Container" gebaut und den will ich jetzt 4 mal anwenden. So wie ich es zuvor über eine Tabelle gemacht habe siehe www.fox-label.com.
<div id="main">
<div id="indexbox">
<div id="boxheader"><a class="box" href="$home/general_info/intro.htm">Our Estate</a></div>
<div id="boxcontent"><img src="pics/home/winter_house.jpg" alt="Our Estate" width="127" height="111" hspace="5" vspace="5" align="right">
Welcome to Lingenfelder Estate Winery, a family operated winery with 13 generations of wine-growing experience in the sunny Pfalz region of
Germany. If you are interested in the history of our winery, want to learn some interesting facts about the Pfalz winegrowing region, need
directions for your next visit, or just want to say hello, this is the place to go.</div>
</div>
<div id="indexbox">
<div id="boxheader"><a class="box" href="$home/general_info/intro.htm">Our Estate</a></div>
<div id="boxcontent"><img src="pics/home/winter_house.jpg" alt="Our Estate" width="127" height="111" hspace="5" vspace="5" align="right">
Welcome to Lingenfelder Estate Winery, a family operated winery with 13 generations of wine-growing experience in the sunny Pfalz region of
Germany. If you are interested in the history of our winery, want to learn some interesting facts about the Pfalz winegrowing region, need
directions for your next visit, or just want to say hello, this is the place to go.</div>
</div>
</div>
Und im CSS steht folgendes:
#main {
width: 540px;
margin: 0 auto;
text-align: center;
position: relative;
padding: 10px 0;
}
#indexbox {
background-color: #FFFF99;
width: 260px;
float: left;
}
#boxheader {
background-image: url(/gif/tap.gif);
text-align: left;
}
#boxcontent {
border-width: 2px;
border-style: solid;
border-color: #B92845;
text-align: justify;
}
Wie bekomm ich das jetzt so hin wie es in der Tabelle war?
<div id="main">
<div id="indexbox">
<div id="boxheader"><a class="box" href="$home/general_info/intro.htm">Our Estate</a></div>
<div id="boxcontent"><img src="pics/home/winter_house.jpg" alt="Our Estate" width="127" height="111" hspace="5" vspace="5" align="right">
Welcome to Lingenfelder Estate Winery, a family operated winery with 13 generations of wine-growing experience in the sunny Pfalz region of
Germany. If you are interested in the history of our winery, want to learn some interesting facts about the Pfalz winegrowing region, need
directions for your next visit, or just want to say hello, this is the place to go.</div>
</div>
<div id="indexbox">
<div id="boxheader"><a class="box" href="$home/general_info/intro.htm">Our Estate</a></div>
<div id="boxcontent"><img src="pics/home/winter_house.jpg" alt="Our Estate" width="127" height="111" hspace="5" vspace="5" align="right">
Welcome to Lingenfelder Estate Winery, a family operated winery with 13 generations of wine-growing experience in the sunny Pfalz region of
Germany. If you are interested in the history of our winery, want to learn some interesting facts about the Pfalz winegrowing region, need
directions for your next visit, or just want to say hello, this is the place to go.</div>
</div>
</div>
Und im CSS steht folgendes:
#main {
width: 540px;
margin: 0 auto;
text-align: center;
position: relative;
padding: 10px 0;
}
#indexbox {
background-color: #FFFF99;
width: 260px;
float: left;
}
#boxheader {
background-image: url(/gif/tap.gif);
text-align: left;
}
#boxcontent {
border-width: 2px;
border-style: solid;
border-color: #B92845;
text-align: justify;
}
Wie bekomm ich das jetzt so hin wie es in der Tabelle war?