Results 1 to 6 of 6

Thread: How do I make a Web 2.0 like rounded box ?

  1. #1
    OilSheikh
    Guest

    How do I make a Web 2.0 like rounded box ?

    I am trying to create boxes like these :



    How do I do them ? What are they correctly called btw ?

    SCAN's homepage is full of them

  2. #2
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb

    Re: How do I make a Web 2.0 like rounded box ?

    Try googling for Rounded Corners... examples using css here...

  3. #3
    Hexus.Lurker
    Join Date
    Jan 2010
    Posts
    357
    Thanks
    17
    Thanked
    13 times in 13 posts
    • Fortune117's system
      • Motherboard:
      • Gigabyte Z77-D3H
      • CPU:
      • Intel Core i5 3570k 3.4Ghz
      • Memory:
      • 8GB Corsair DDR3
      • Storage:
      • Kingston Hyper X 120GB SSD
      • Graphics card(s):
      • XFX Radeon 7870 DD Edition
      • PSU:
      • OCZ ZS Series 650 Watt
      • Case:
      • Coolermaster CM690
      • Operating System:
      • Windows 8 64-Bit
      • Monitor(s):
      • [Eyefinity] 3 LG 23EA63V
      • Internet:
      • Virgin Media 50MB

    Re: How do I make a Web 2.0 like rounded box ?

    You could use images for the backgrounds of each div, or you could make them directly in CSS3 using

    Code:
    border-radius: 15px;
    I think its that, anyway. lol

    EDIT: Found the CSS3 page documenting border-radius here

    I would probably do it like this:



    If that makes more sense to you..
    Last edited by Fortune117; 05-08-2012 at 03:47 PM.

  4. #4
    OilSheikh
    Guest

    Re: How do I make a Web 2.0 like rounded box ?

    I am trying to do something like this



    where the top of the box has rounded edges and is coloured and the contents box in the middle is just a regular square and has no rounded edges. I usually see them on so many websites.

  5. #5
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,231
    Thanked
    2,291 times in 1,874 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: How do I make a Web 2.0 like rounded box ?

    So do you just want the top corners rounded, or do you want all the corners rounded with a rectangular box in the middle? If you look carefully at the picture you've included , you'll see it has rounded corners at the bottom as well, and may be done using the rounded borders in CSS3. Problem being, not all browsers support CSS3 (I haven't done much web design recently so I don't know how wide support is at the minute - it was absolutely minimal last time I was doing a lot of design).

    If you just want rounded corners at the top, the "easiest" way to do it is with multiple divs and images, so you have 3 images, a top left corner, a top right corner, and a middle that you repeat across the middle div. And no, it's not particularly easy, but it does give you pretty good cross-browser compatibility...

  6. Received thanks from:


  7. #6
    OilSheikh
    Guest

    Re: How do I make a Web 2.0 like rounded box ?

    Quote Originally Posted by scaryjim View Post
    So do you just want the top corners rounded, or do you want all the corners rounded with a rectangular box in the middle? If you look carefully at the picture you've included , you'll see it has rounded corners at the bottom as well, and may be done using the rounded borders in CSS3. Problem being, not all browsers support CSS3 (I haven't done much web design recently so I don't know how wide support is at the minute - it was absolutely minimal last time I was doing a lot of design).

    If you just want rounded corners at the top, the "easiest" way to do it is with multiple divs and images, so you have 3 images, a top left corner, a top right corner, and a middle that you repeat across the middle div. And no, it's not particularly easy, but it does give you pretty good cross-browser compatibility...
    Tnx for your post. I just need the top bit rounded. It was the closest pic I could find to what I need. Thing's beginning to sound like too much hard work... I guess I'll just use Photoshop and make the top bit and then HTML a table row to it.

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
  •