Results 1 to 2 of 2

Thread: Making a simple box

  1. #1
    Join Date
    May 2005
    Location
    Gold River, British Columbia Canada
    Posts
    29
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Making a simple box

    Forgive my ignorance, but I am new to css and have been looking through posts in this forum for information on how to create a simple bordered box with bordered header within it. I figure I must create a div and format it with a border but how to do it? Any tutorials on how to do this?
    Here is an image of what I want to do:


    Here's what I've tried but I get a double border between divs.
    Code:
    #boxheader  { width: 155px;
    		background-color:#00a8e1;
    		border: solid;
    		color:#000000;
    		}
    		
    		#box  {  width: 155px;
    		border:solid;
    		color:#000000;
    		}
    Code:
    <div id="boxheader"><h1>Content for  class "boxheader" Goes Here</h1></div>
    <div id="box">Content for  class "box" Goes Here</div>
    </div>
    Got it to work with this:
    Code:
    #boxheader  {
    	width: 155px;
    	background-color:#00a8e1;
    	color:#000000;
    	border-top-width: thin;
    	border-right-width: thin;
    	border-bottom-width: thin;
    	border-left-width: thin;
    	border-top-style: solid;
    	border-right-style: solid;
    	border-bottom-style: solid;
    	border-left-style: solid;
    	border-top-color: #000000;
    	border-right-color: #000000;
    	border-bottom-color: #000000;
    	border-left-color: #000000;
    		}
    Last edited by nootkan; 10-21-2009 at 06:40 AM. Reason: Resolved

  2. The Following User Says Thank You to nootkan For This Useful Post:

    jerdy (10-22-2009)

  3. #2
    Join Date
    Oct 2009
    Location
    USA
    Posts
    40
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Hey, great to know. Thanks

Bookmarks

Posting Permissions

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