Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox

asked on 

Rounded <div> corner inside another <div>

Hi,

With the help of experts here, i have a simple html layout which is a rounded corner content layout (working code attached).

I'd like to finish this off by adding another 2 boxes with rounded corners inside the current content <div> at the top. I'm basically trying to recreate this page layout:

    http://topwpthemes.com/simplyorange/

named "simplyorange", (you can hit the preview button to see what it looks like). It is a wordpress theme, but it does not display correctly on iphone mobile safari and wordpress is too slow for my purposes, so I jsut wanted to make this simple static version of it.

How can I create the bright blue and orange rounded boxes inside the current content div I already have? After that it's done,

Thanks for any help
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
.spiffy{display:block}
.spiffy *{
  display:block;
  height:1px;
  overflow:hidden;
  font-size:.01em;
  background:#FFFFFF;
  }
.spiffy1{
  margin-left:3px;
  margin-right:3px;
  padding-left:1px;
  padding-right:1px;
  border-left:1px solid #8ec6d3;
  border-right:1px solid #8ec6d3;
  background:#cde6ec;
  }
.spiffy2{
  margin-left:1px;
  margin-right:1px;
  padding-right:1px;
  padding-left:1px;
  border-left:1px solid #4da5ba;
  border-right:1px solid #4da5ba;
  background:#d9ecf0;
 }
.spiffy3{
  margin-left:1px;
  margin-right:1px;
  border-left:1px solid #d9ecf0;
  border-right:1px solid #d9ecf0;
}
.spiffy4{
  border-left:1px solid #8ec6d3;
  border-right:1px solid #8ec6d3;
}
.spiffy5{
  border-left:1px solid #cde6ec;
  border-right:1px solid #cde6ec;
}
  
.spiffyfg{
  background:#FFFFFF;
  padding-top:15px;
  padding-left:15px;
  padding-right:15px;
  padding-bottom:15px;
  width:600px;
}
  
  body     { color:#222222; font-family:"Trebuchet MS","Lucida Grande",Verdana,Georgia,Sans-Serif; font-size:76%; background-color: #3a9bb3; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal; line-height:normal; -x-system-font:none;}
                  
</style>
 
 
  </head>
  
  
  <body>
  <div style="width: 630px;  margin:0 auto;">
  <b class="spiffy">
  <b class="spiffy1"><b></b></b>
  <b class="spiffy2"><b></b></b>
  <b class="spiffy3"></b>
  <b class="spiffy4"></b>
  <b class="spiffy5"></b></b>
 
  <div class="spiffyfg">
      some content here....
  </div>
 
  <b class="spiffy">
  <b class="spiffy5"></b>
  <b class="spiffy4"></b>
  <b class="spiffy3"></b>
  <b class="spiffy2"><b></b></b>
  <b class="spiffy1"><b></b></b></b>
</div>

Open in new window

HTMLCSS

Avatar of undefined
Last Comment
mohammade

8/22/2022 - Mon