Div with rounded corners

Discussion in 'CSS' started by Pietercornelis, Jan 3, 2007.

  1. #1
    Hey all,

    Lately, I've been seeing a lot of websites which use div's for their layout, and these div's have rounded corners. I was wondering how these are made, and couldn't quite figure it out from the sourcecode. Could someone enlighten me?
    Thanks in advance!
     
    Pietercornelis, Jan 3, 2007 IP
  2. kniveswood

    kniveswood Well-Known Member

    Messages:
    764
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #2
    kniveswood, Jan 3, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dan Schulz, Jan 3, 2007 IP
  4. thechasboi

    thechasboi Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Pietercornelis

    The nice thing about Nifty is that it is code based and all you have to do is setup the code for each div or span you wish to round. With the spanky corners you have to change your code. Both are great but I recommend Nifty for it ease and Niftyness, pun intended.
     
    thechasboi, Jan 3, 2007 IP
  5. Claudek

    Claudek Well-Known Member

    Messages:
    1,379
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #5
    I would lean towards Spanky Corners as it does not need javascript to work like Nifty Corners does.

     
    Claudek, Jan 3, 2007 IP
  6. thechasboi

    thechasboi Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    But with nifty you do not need to change only of your CSS. The nifty route is really only two lines of code. Really simple and just include the javascript files. It is a black box that all you need to know are the two lines of code. It comes with many examples to help with the code, and nifty you can choose whether to do all corners or one top left ... I think you get the message. Just personal choice. I just wanted to elaborate a little on how it works. I do like Spanky very much but when you have the page already setup like you like and need an easy quick fix that works well nifty does the trick.
     
    thechasboi, Jan 3, 2007 IP
  7. Claudek

    Claudek Well-Known Member

    Messages:
    1,379
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #7
    I am noticing more and more browsers coming in with javascript disabled which is why I recommended Spanky Corners.
     
    Claudek, Jan 3, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    They could be mobile users, or bots.
     
    Dan Schulz, Jan 3, 2007 IP
  9. thechasboi

    thechasboi Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Claudek

    Good point. My site requires javascript in order to use it. The users understand this. I did not realize this was the case still.
     
    thechasboi, Jan 3, 2007 IP