Is it possible to draw this shape in css?

Anything questions related to styling should go in here.
Post Reply
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

Is it possible to draw this shape in css?

Post by brisk »

Example - http://www.budgie.richardcmpage.com/Images/IDEA2.png

Like the rectangle with another tab type bit? Or can another language do it?

I would like to try and avoid using an image-bg.
User avatar
TerryHarvey
Posts: 20
Joined: Thu Mar 01, 2012 11:12 am

Re: Is it possible to draw this shape in css?

Post by TerryHarvey »

You can change the heights and widths yourself. If you want box2 to be pushed further along, change the 60px in this line:

margin: 0 60px 0 0;

[syntax=xhtml]<!doctype html>
<head>
<title></title>
<style type="text/css">

#container {
width: 800px;
margin: 0 auto;
}

.box1 {
background: #999;
width: 800px;
height: 60px;
}

.box2 {
background: #999;
width: 200px;
height: 30px;
float: right;
margin: 0 60px 0 0;
}

</style>
</head>
<body>
<div id="container">
<div class="box1"></div>

<div class="box2"></div>
</div>
</body>
</html>[/syntax]
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

Re: Is it possible to draw this shape in css?

Post by brisk »

thank you thank you
User avatar
TerryHarvey
Posts: 20
Joined: Thu Mar 01, 2012 11:12 am

Re: Is it possible to draw this shape in css?

Post by TerryHarvey »

No problem. :)
Post Reply