SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: 1 Round Corner

  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    1 Round Corner

    I have no prior knowledge of round corners. All I wanted is one round corner in the top left. The way I went about doing it was have one DIV be just a box. The other DIV contained the image to make it round. I moved the box using margin properties to make it work. I don't know if that is the right way to do it but my problem is that it doesn't work in IE but does in FireFox etc.. The example would be located here...

    http://www.angelfire.com/planet/jordan89r/index.html

  2. #2
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should work.

    After reading you post again I realized that I should be more descriptive. You of course need to make a rounded corner in Fireworks, PS, etc. Create a div that has the same background color as your corner image. Then place the img tag below in that div.

    Code:
    .topLeft{
    position:absolute;
    left:0px;
    top:0px
    }
    
    <img class="topLeft" src="blah.blah">
    Just occurred to me that maybe a background image may be better. Maybe someone can chime in with their opinion. In anycase:

    Code:
    div{
    background-image: 
    url('blah.blah');
    background-repeat: no-repeat;
    background-position:  left; 
    }
    Hope this is actually helpful

  3. #3
    SitePoint Addict
    Join Date
    Apr 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd do the background image thing, but you'll run into problems trying to do that if you also want a border around the div. The border will extend past the rounded corner and look weird.
    Bring out our hope and reason, before we pine away.

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
  •