Results 1 to 2 of 2

Thread: only margin in color

  1. #1
    Join Date
    Feb 2012
    Location
    The Netherlands
    Posts
    25

    only margin in color

    I want only the margin in color, when a frame with a color.
    How can I do that?

  2. #2
    Join Date
    Feb 2012
    Location
    The Netherlands
    Posts
    25
    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>

Similar Threads

  1. Replies: 1
    Last Post: 26 Sep 2011, 04:08 AM
  2. Dreamweaver - Margin
    By bigcougar in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 08 Feb 2011, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •