Immer unter der Vorraussetzung, dass Stylesheets in den Header gehören, muss das so aussehen:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
div.bg {
background-image: url(http://img225.imageshack.us/img225/5592/hgyd3.jpg);
border-right: #EE1289 6px solid;
border-top: #EE1289 6px solid;
left: -51562520px;
overflow: auto;
border-left: #EE1289 6px solid;
border-bottom: #EE1289 6px solid;
top:-134217728px;
height: 100px;
width: 230px;
text-align: center;
}
</style>
</head>

<body>
<div class="bg"><p><br /> TEXT </p> </div>
</body>
</html>

Man definiert nie eine Classe, um dann doch noch den Style-Tag im <div> -Container zu benutzen. Dieser Code ist auch xHTML 1.1 valide.
_________________________
Das Lesen ist eine Tugend!