Salve a tutti, forse questa cosa non è nuova, ma io l'ho appena scoperta.
Guardate:
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS - rounded corners</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="cybernetix @ [url]http://computerscorp.com[/url]">
<style type="text/css">
body { font: 14px Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
color: #FFCC00;
}
.rblock {
background-color: #f2f2f2;
}
.rblock *.m5 {
margin: 0 5px;
}
.rblock *.m3 {
margin: 0 3px;
}
.rblock *.m2 {
margin: 0 2px;
}
.rblock *.m1 {
margin: 0 1px;
}
.rblock p.content {
padding: 0px 20px;
}
.rblocktop, .rblockbottom {
background-color: #FFFFFF; /* must be of the same as body bg-color */
display: block;
width: 100%;
}
.rblocktop *, .rblockbottom * {
background-color: #f2f2f2; /* must be of the same as .rblock bg-color */
display: block;
height: 1px;
overflow: hidden;
}
</style>
</head>
<body>
<center>
<div class="rblock" style="width: 300px;">
<div class="rblocktop">
<span class="m5"></span><span class="m3"></span><span class="m2"></span><span class="m1"></span><span class="m1"></span>
</div>
<p class="content" style="text-align: justify; text-indent: 20px; /* change this style to whatever you want or remove it */">
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
</p>
<div class="rblockbottom">
<span class="m1"></span><span class="m1"></span><span class="m2"></span><span class="m3"></span><span class="m5"></span>
</div>
</div>
</center>
</body>
</html>
Funziona con FF, IE e Safari! Gli altri li sto provando ora con Browsershot!
Cosa ne pensate? Controindicazioni?
EDIT: l'ho trovata io la controindicazione mi sa...Non è possibile usare i bordi di un colore e lo sfondo di un altro, vero?