seomaster
seomaster

Creating a curve through CSS (without using an image)

{ Posted on Jun 04 2009 by Ryan Montilla }


Long time ago I used an image to create a curve box for most of my website design, but I really want a curve box in CSS without using an image. Well I guess I am lucky to find out because I found it guys. I’m gonna share it also to you what I found because I know you are also looking for this. I am impressed of the output because no images were used to create this curve.

This original author is from mindrulers.blogspot.com.

YOUR HTML CODE

<html>
<head>
<link href=”curvedbox.css” rel=”stylesheet” type=”text/css” />
</head>
<body>
<div class=”curvedBox”>
<span>
<span class=”r1″ ></span>
<span class=”r2″ ></span>
<span class=”r3″ ></span>
<span class=”r4″ ></span>
</span>
<div class=”content”>
Flex is a cross-platform development framework for creating rich Internet applications (RIAs). Flex enables you to create expressive, high-performance applications that run identically on all major browsers and operating systems.
</div>
<span>
<span class=”r4″ ></span>
<span class=”r3″ ></span>
<span class=”r2″ ></span>
<span class=”r1″ ></span>
</span>
</div>
</body>
</html>

YOUR CSS CODE

body {background-color:#000;}
.curvedBox
{
width:300px;
}
.curvedBox .r1, .curvedBox .r2, .curvedBox .r3, .curvedBox .r4
{
background-color:#fff;
display:block;
overflow:hidden;
height:1px;
font-size:1px;
}
.curvedBox .r2, .curvedBox .r3, .curvedBox .r4
{
border-width:0 1px;
border-left:1px solid #fff;
border-right:1px solid #fff;
}
.curvedBox .r1 {margin:0 6px;}
.curvedBox .r2 {margin:0 3px;}
.curvedBox .r3 {margin:0 2px;}
.curvedBox .r4 {margin:0 1px;height:2px;}

.curvedBox .content
{
background:#fff;
border-left:1px solid #fff;
border-right:1px solid #fff;
padding:0 5px;
}

Subscribed with my site for more tutorial updates

Bookmark and Share


Possibly Related Posts:


Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogosphere News
  • Live
  • MyShare
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • BlinkList
  • blogmarks
  • BlogMemes Fr
  • Diigo
  • LinkedIn
  • Linkter
  • MSN Reporter
  • MySpace
  • Twitthis
  • Design Float
  • LinkArena
  • Reddit
  • Technorati
  • Upnews
  • Wikio IT
If you enjoyed this post, make sure you subscribe to my RSS feed!


5 Responses to “Creating a curve through CSS (without using an image)”

  1. Where is the example???

    And, you stole this article from mindrulers.blogspot.com and you don’t put a live link to the original author???

    You are a fucking Looser!!

  1. 4 Trackback(s)

  2. Graphic Design Links and Tutorials
  3. 60+ Excellent Fresh User Submitted Links | tripwire magazine
  4. 纯css的圆角| CSS| 前端观察
  5. Don-Jai : โดนใจ | [โปรเจคจบ] Design phase : ออกแบบหน้าเวบ

Post a Comment