Hallo
Also ich wollte jetzt einer Box dem Border eine Image zuweisen, also hab ich mal gegoogelt und wurde auch fündig.
Ist so eine Div-Suppe die einzige Möglichkeit es so zumachen ??
Also ich wollte jetzt einer Box dem Border eine Image zuweisen, also hab ich mal gegoogelt und wurde auch fündig.
Code:
<style type="text/css">
<!--
div.box {background:url(img/box_ww.gif) repeat-y;}
div.box div {background:url(img/box_ee.gif) right repeat-y;}
div.box div div {background:url(img/box_nn.gif) repeat-x;}
div.box div div div {background:url(img/box_ss.gif) bottom repeat-x;}
div.box div div div div {background:url(img/box_nw.gif) left top no-repeat;}
div.box div div div div div {background:url(img/box_ne.gif) right top no-repeat;}
div.box div div div div div div {background:url(img/box_sw.gif) left bottom no-repeat;}
div.box div div div div div div div {background:url(img/box_se.gif) right bottom no-repeat;}
div.inhalt {padding: 10px 10px 15px 10px;}
-->
</style>
</head>
<body>
<div class="box">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div class="inhalt">
der inhalt<br />
der inhalt<br />
der inhalt<br />
der inhalt<br />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Ist so eine Div-Suppe die einzige Möglichkeit es so zumachen ??