Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Even out rounded corners
Old 07-09-2009, 11:58 AM Even out rounded corners
Extreme Talker

Posts: 218
Trades: 0
The rounded corners of these boxes seem slightly thicker than the box straight lines (see attached image).

How do I make it more so the straight lines and corner thickness' match? Thanks.

Code:
/* set the image to use and establish the lower-right position */
    .cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2{
      background: transparent url(../images/boxcorner.png) no-repeat bottom right}
    .cssbox{
    /* intended total box width - padding-right(next) */
      
      width:280px !important; /* IE Win = width - padding */
      width: 280px;
      float:left;
      
    /* the gap on the right edge of the image (not content padding) */
      padding-right:15px; /* use to position the box */
      margin:20px auto}
    /* set the top-right image */
    .cssbox_head{background-position:top right;
    /* pull the right image over on top of border */
      margin-right:-15px; 
    /* right-image-gap + right-inside padding */
      padding-right:107px}
    /* set the top-left image */
    .cssbox_head h2{
      background-position:top left;
      margin:0; /* reset main site styles*/ 
      border:0; /* ditto */
    /* padding-left = image gap + interior padding ... no padding-right */
      padding:25px 0px 15px 40px; 
      */height:auto !important;*/
      height:1%} /* IE Holly Hack */
    /* set the lower-left corner image */
    .cssbox_body{
      background-position:bottom left;
      margin-right:25px; /* interior-padding right */ 
      padding:15px 0 15px 40px} /* mirror .cssbox_head right/left */

.cssbox {
    margin-right:30px; /* increase this value to suit your requirements */
 }
Attached Images
File Type: jpg boxes3.jpg (65.4 KB, 3 views)
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Even out rounded corners
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39835 seconds with 13 queries