Results 1 to 1 of 1

Thread: Round corners with CSS

  1. #1
    Registered
    Join Date
    Jan 2009
    Posts
    17

    Round corners with CSS

    I have problems creating round corners with CSS

    The right top, right bottom and left bottom corners show up on the most outer part of the website. See attachment

    Here is the html code
    Code:
    <div id="contact">
     <span class="trr"></span><!--top_right-->
    <h2>Contact Us</h2>
    <p>Call us <strong>Toll Free at 888-888-8888</strong> or <strong>Toronto Local 555-555-5555</strong>, send us an <a href="../html/contact_form.html">email</a> or go to our <a href="../html/contact_us.html">Contact Us</a> page for more details.
    </p>
     <span class="bll"></span><!--bottom_left-->
     <span class="brr"></span><!--bottom_right-->
    </div>
    CSS code
    Code:
    	
        #contact {
    	background-color: #DDDDDD;
    	width: 165px;
    	padding-left: 21px;
    	padding-right: 10px;
    	padding-top: 1px;
    	float: right;
    	margin-top: 10px;
    	background-image: url(../images/tl.gif);
    	background-repeat: no-repeat;
        }
    
    	.trr, .bll, .brr {
    	width : 20px;
    	height : 20px;
    	display : block;
    	margin-bottom : -1px;
    	position: absolute;	
    	}
    
    	/* change position and image: top-right */
    	.trr {
    	background : url(../images/tr.gif) no-repeat;
    	top : 0;
    	right : 0;
    	}
    	
    	/* change position and image: bottom-left */
    	.bll {
    	  background : url(../images/bl.gif) no-repeat;
    	  bottom : 0;
    	  left : 0;
    	}
    	
    	/* change position and image: bottom-right */
    	.brr {
    	  background : url(../images/br.gif) no-repeat;
    	  right : 0;
    	  bottom : 0;
    	}
    Any ideas why?
    Attached Images Attached Images
    Last edited by gpeters; 08-31-2009 at 10:59 AM.

Similar Threads

  1. Help needed with elastic CSS box using images for borders and corners
    By pample in forum HTML, CSS, Layout, and Design
    Replies: 5
    Last Post: 10-10-2008, 08:37 AM
  2. POST 100 - Pure CSS for Rounded BOX Corners
    By ! search-engines- in forum HTML, CSS, Layout, and Design
    Replies: 8
    Last Post: 03-26-2006, 07:55 PM
  3. theres a border round a graphic I can't get rid of....
    By Blue Cat Buxton in forum HTML, CSS, Layout, and Design
    Replies: 6
    Last Post: 09-23-2004, 03:09 PM
  4. My first go round with AWS
    By RockNRollPig in forum User Owned Websites
    Replies: 5
    Last Post: 02-17-2004, 10:28 PM

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
  •