Page 1 of 2 12 LastLast
Results 1 to 20 of 36
  1. #1
    Join Date
    Mar 2007
    Location
    127.0.0.1
    Posts
    1,661

    Default Rounded Corners Without Images

    Here is a nice little 'Nifty' tool that I would like to share with you. It's called Nifty and using only CSS and Javascript it can create you rounded corner boxes without the use of images. For more have a look here: http://webdesign.html.it/articoli/le...fty-corners/1/
    Josh

    Resident Blogger

  2. #2
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Thanks for that link flesso - its really helpful .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  3. #3

    Default

    Seems very easy to use for absolute positioning, I guess the effect should be very interesting, I would like to see few examples. Thanks flesso for the link.

  4. #4
    Join Date
    Mar 2007
    Location
    Chichester, W. Sus***
    Posts
    51

    Default

    Following appears to be an update to Nifty Corners:
    http://www.html.it/articoli/niftycube/index.html

    James

  5. #5
    Join Date
    Mar 2007
    Location
    127.0.0.1
    Posts
    1,661

    Default

    Quote Originally Posted by KellyJ View Post
    Following appears to be an update to Nifty Corners:
    http://www.html.it/articoli/niftycube/index.html

    James
    I like that one. Seems to make the boxes for you.
    Josh

    Resident Blogger

  6. #6
    Join Date
    Oct 2006
    Posts
    384

    Default

    But why? That seems more complicated to me than just using css!

    Act honestly, and answer boldly

    Abundance is from activity
    Starting the work is two thirds of it

  7. #7
    Join Date
    Mar 2007
    Location
    Chichester, W. Sus***
    Posts
    51

    Default

    daledavies , I presume you mean using CSS + JavaScript is more more complicated than just using css, and that seems reasonable. I believe however, what Nifty Corners Cube is offering is a standard piece of JS, so that the customised CSS is then simplified.

    Others use CSS with GIFs, even some have CSS only solutions. Following is a good summary list of many or most of the current alternative techniques:

    http://www.smileycat.com/miaow/archives/000044.php

    I have to admit, I haven't used any round corner technique yet, though hopefully in my next web design.

    James

  8. #8
    Join Date
    May 2007
    Location
    Newport, Wales
    Posts
    998

    Default

    Yuck, javascript.

  9. #9
    Join Date
    Nov 2007
    Location
    Edinburgh
    Posts
    62

    Default

    To elaborate on what Thomas just said; I would hope no one would ever use these sorts of JavaScript/CSS experiments on a live site.

    While these things are great fun and can often lead to excellent new techniques this is not such a case.

    Forcing the client to process a script to create a corner that could really quite simply be served from the server in the form of an image is crazy, not to mention the fact that these scripts produce rather horrendous and wholly inaccessible HTML.

    As Kelly pointed out there are many other techniques out there that don't force you to sacrifice your semantic HTML or put extra load on your client, none of them are perfect but I'm afraid until we see the dawn of CSS3 (and multiple backgrounds on single elements) we're stuck with 'em.
    Last edited by developmentxl; 25-01-2008 at 12:42.

  10. #10

    Default

    I must say that it is great!!! I like it. I will try to apply to my website hosting. Only one question. Is it friendly with search engines?
    Thanks
    Got expired domain names with Google page rank and Alexa info from Aboutdomains.net - Cheap domain names for Smart Domainers

  11. #11
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    3,011

    Default

    Quote Originally Posted by WelshTom View Post
    Yuck, javascript.
    Lol... although I may agree to an extent with you and developmentxl I seriously do not find the problem with JavaScript, most people don't really block JS via their browsers but really, there are a few disadvantages of using JavaScript.

    I like to use JS on my pages to automate a few things so it's alright to me, don't see much wrong with it but I would understand where others are coming from about JS...
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

  12. #12
    Join Date
    Nov 2008
    Location
    United Kingdom
    Posts
    70

    Default

    I have used the CurvyCorners library in the past. It seems to work pretty well, although you may need to adjust the sizes because of padding.

    I would post the URL but I don't have enough posts.

    www[dot]curvycorners.net
    What is the difference between Windows 95 and Windows 98?

    Three years.

  13. #13

    Default

    Personally I have no problem with javascript on live web pages - as long as the site renders OK and functions properly with java script turned off. i.e get your site looking great using just CSS and the occasional table and then add java script where it can make for a better user experience.

    But I don't really understand the obsession with rounded corners. Square corners look just fine to me and rounded corders represent just too much effort for too little reward. Unlesss of course you have a paying client who just *has* to have rounded corners.

  14. #14
    Join Date
    Nov 2008
    Location
    United Kingdom
    Posts
    70

    Default

    Rounded corners were part of the Web 2.0 revolution, which seems to have died down somewhat lately.
    What is the difference between Windows 95 and Windows 98?

    Three years.

  15. #15

    Default

    Thanks for that link flesso - its really helpful

  16. #16

    Default

    Oh thanks alot...It is really interesting. I am going to try this too...
    I have been working on some other similar stuff too, I will post it soon too.

  17. #17
    Join Date
    May 2009
    Posts
    36

    Default

    Quote Originally Posted by abstract View Post
    Oh thanks alot...It is really interesting. I am going to try this too...
    I have been working on some other similar stuff too, I will post it soon too.
    Try this

    Put this css parameter in any class and you will get round corner

    Code:
    -moz-border-radius: 8px;

    here is example of Round corner Text Input box

    Code:
    .input{
    font-family:Tahoma;
    font-size:13px;
    background-color:#FFFFFF;
    color: #000000;
    width:200px;
    border:1px solid #E3EEF7;
    -moz-border-radius: 8px;
    height:20px;
    }

  18. #18

    Default

    This will only work in Firefox not in IE n others

    Quote Originally Posted by Vish View Post
    Try this

    Put this css parameter in any class and you will get round corner

    Code:
    -moz-border-radius: 8px;

    here is example of Round corner Text Input box

    Code:
    .input{
    font-family:Tahoma;
    font-size:13px;
    background-color:#FFFFFF;
    color: #000000;
    width:200px;
    border:1px solid #E3EEF7;
    -moz-border-radius: 8px;
    height:20px;
    }

  19. #19
    Join Date
    Dec 2009
    Posts
    20

    Default

    @abstract - is there an alternative that can be used in IE & others?

  20. #20

    Default Rounded corner in IE

    Well for IE you will have to use the strategy described above in start of this thread. By default mozilla supports this rounded corner CSS property. But I think they have introduced a border-radius property for rounded corners, but this will work only in CSS3 compatible browsers which may work for IE (if they start following standards).

    So, for IE I will personally prefer images method to avoid any issues. Also when coming to JS IE always works differently so I think its better to avoid JS version and use images for corners.

    Though there are some really good ways to use images too (using in nested div structures and using class to set background of each div.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •