CSS Design: Creating Custom Corners & Borders

by Søren Madsen

96 Reader Comments

Back to the Article
  1. Almost every designer seems to be kind of upset with Microsoft Internet Explorer because, although used by 94% of Internet users(could we call it the “majority”?), does not parse the CSS as dictated by whoever decide that CSS should make 94% comply with what the other 6% say is acceptable. I fail to see the logic of creating a standard which goes against the trend of the users. When I code a page I want the end-user to see my product and I little care about the Mozilla vs.Explorer with Opera as a referee! Could the W3C take into account the facts of life?

    Copy & paste the code below to embed this comment.
  2. What facts of life are those? Microsoft does not own the universe, and just because the current MS browser does not quite support standards they had as much of a chance as anyone else to put input into does not mean those standards are wrong, only that they are not currently supported by a browser that is used by a great many people, and is essentially only avalible for one operating system.

    Bugs are a fact of life in any code, but especially in anything as complex as IE. I may be wrong but I can’t think of anything recent and CSS-based where MS’s reaction was “go away—our way is better.”

    “The facts of life” are unless you never want the feature set of any browser to change at all, there will always be bugs in the browsers and they will not be consistant from one browser to another, and of course not one browser version to another.

    Copy & paste the code below to embed this comment.
  3. I do not remember saying that Microsoft own anything. The question I am asking is why ignore the majority of users when standards are made. And by the way MS reaction is exactly what Netscape used to have when they were the 300 pound “Godzilla” in the world of browsers. I only want to go about my coding business and be as efficient as possible and be able to have a page that renders with any browser without being plain vanilla text. I was so happy when I first heard about CSS and I dreamed that it would work with any browser. CSS 3 is on the horizon and my dream is still a dream. Yes, bug are a fact of life. So what? We try to feed them rather then debugging?

    Copy & paste the code below to embed this comment.
  4. if it only worked correctly on IE6!!!

    You guys are wasting a lot of time on this, as I did.  I spent several days trying to get this to work on IE6, but no dice.

    I have concluded that since it doesn’t work correctly on IE6, it’s pretty much useless.

    Nice idea, though.

    Copy & paste the code below to embed this comment.
  5. Thanks, this article was very helpful for me. I have always hated rounded corners but now I will only do round stuff ;)

    Copy & paste the code below to embed this comment.
  6. I had suggested the “Sliding Doors” tutorials to friend because they were mega-helpful.. and she forward this little guy to me.. thanks!

    Copy & paste the code below to embed this comment.
  7. These things seem to be gems, every single one of them.  The more I get into CSS (thanks to alistapart.com and sitepoint.com) the more upset I am with MSIE not being up to CSS standards.

    Copy & paste the code below to embed this comment.
  8. This technique works great for me.

    But one thing I can’t get to work—and I’m surprised no one mentioned it—is that if you try to put a right-aligned image in the body of the box, the box doesn’t grow vertically to accomidate the full size of the image.

    Any ideas how to fix this?
    -Hank

    Copy & paste the code below to embed this comment.
  9. I’m VERY new to CSS, 4 days, in fact.

    I’ve learned more on this site than any other about HTML, CSS and Webdesign.  I find the writing to be intelligent, informative and even a wee bit creative betimes.

    I will attempt to employ some of these techniques in me own pages, which shall remain unidentified for now.  (I’ve only 15 days of HTML thus far.)

    Five stars, Angus!!

    Happy Dae

    Copy & paste the code below to embed this comment.
  10. Very nice, however I’ve run into a nice problem, which a few other people seem to be having.  The nice I don’t have a footer everywhere so why just fill up space with the footer….

    http://rag.nu/New Folder/New Folder/test.html
    Looks good but for the huge space where $foot is… oh, and who said this was purely for rounded corners.

    Copy & paste the code below to embed this comment.
  11. Add me to the ALA’s Admirers group!

    great articles, even greater suggestions and ‘idea-generator’…

    My issue with the rounded corners stuff as presented here is that I either have to provide HUGE images to cover every possible window-size, or that I am forced to limit the box to a specific maximum height/width.

    Too bad you don’t make use of the browsers abilities to actually repeat backgnd images.

    Right now, I am tryin’ to get a fully fluid, indefinitely resizable rounded-corner-box (with 9 Backgnd images—which could be reduced to 3: the combined corners, top- and bottom edges, the right and left edges), and there seems to be quite some differences between MS and the rest of the world. (On my side, everything works flawless unless I touch the MS-Universe).

    But then, I even have difficulties to find myself a box of there to do the checklist.

    Once the cross-platform -Browser compatibility issues will be solved (if this is possible at all), I consider to create some script (thru innerhtml or somesuch) that will generate the extra html needed to render the boxes edges and corners, so that all I’ll have to throw into the page is the actual content, like, <div class=“my-boxed-stuff” id=“myfirstbox”>boxed</div>

    any help or hints/pointers are welcome, of course!

    best
    david. )

    Copy & paste the code below to embed this comment.
  12. Is anyone else getting a problem where andy imiges held inside the Articlebody box is not being displayed, is there a solution?

    Copy & paste the code below to embed this comment.
  13. I have tried your method using only 3 images for the boxes. Two of the boxes are also using an image replacement technique. I am also limited to using standard (for our company) classes and minimal ids. I got everything working finally in Safari, Mozilla,  ie5.2 mac and ie5.5 pc, except… once I adjusted for the pc, the content in two of my boxes become overlapped or disappear! Any suggestions are greatly appreciated.

    Copy & paste the code below to embed this comment.
  14. For those with high resolutions or designs simply wanting to keep image size down, what would you recommend doing about the possible and eventual break between the left and right corners?

    Copy & paste the code below to embed this comment.
  15. I had applied this article to create a web page, all work ok but in Internet Explorer the right border doesn’t show well, not appear as a continuous line.
    There are any method to solve this?
    Can view the problem on mi web:
    http://philips530.webcindario.com

    Copy & paste the code below to embed this comment.
  16. I wasn’t able to get the borders to work. The top left and bottom left over-lapped the right side. The footer “p” extended too far to the left out of the boxed area. How can I make this work and how can I make my own gif designs?

    Copy & paste the code below to embed this comment.