PDA

View Full Version : only margin in color



Swallow
12 Feb 2012, 02:57 PM
I want only the margin in color, when a frame with a color.
How can I do that?

Swallow
13 Feb 2012, 03:38 PM
finally I have found something that I can use

<head>
<style type="text/css">
#hoofdblok { position:relative; left:100px; top:20px; width:500px; height:200px; background:#000000; color:#ffffff }
#yellowblok { position:absolute; left:30px; top:50px; width:250px; height:100px; background:#ffff00; color:#000000 }
#greenblok { position:absolute; left:30px; top:30px; width:100px; height:50px; background:#00c000; color:#000000 }
</style>
</head>

<body>
<div id="hoofdblok">Dit is de hoofdblok
<div id="yellowblok">Dit is de gele blok
<div id="greenblok">Dit is de groene blok
</div>
</div>
</div>
</body>