Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    1
    Member #
    17966
    Normally, I create a div and add my cornered images to the div. I have found a few sites that will use javascript instead to do this. Could anyone share a few reasons why one way would be better than the other? Thank you in advance.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    I would use CSS myself:
    http://www.google.com/search?q=css+c...es&btnG=Search

    But you're right, there are other options.
    I think it's just a personal preference.

    Sometimes, doing it with a "rounded" graphic corner is the easiest.

    I don't have a good answer for this.


  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Using CSS is usually the most flexible (i.e., it will be most graceful with zooming and such). The best is definitely using the CSS rounded corner properties ([minicode]border-radius[/minicode]) but these are not supported in IE. Javascript ones tend to have issues in certain situations, I have found. In particular, they tend not to deal with scaling as well, since they typically rely on positioning things absolutely over the corners, such that a zoom in may screw everything up.

    If you are willing to go through the extra work needed for CSS-and-image-based corners, I think it's worth it over JS solutions.

  5. #4
    Senior Member diddy's Avatar
    Join Date
    Jun 2008
    Location
    Sydney, Australia
    Posts
    502
    Member #
    16955
    also remember that javascript is not supported in all browsers etc. CSS is more flexible and would look better. Might load faster as well. (not sure on that last bit)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:30 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com