A Very basic html Question...

Discussion in 'HTML & Website Design' started by Custard, Mar 26, 2006.

  1. #1
    Hi,

    I need some help...

    I am tring to create a small, rounded 'category' header for a site.

    Eg. www.dabs.com (where the header says 'browse category' , 'my basket' etc)

    Could somebody explain how I code a header like this to be curved at the top rather than just rectangle, without the need for inserting an image (if possible?

    Thanks.
     
    Custard, Mar 26, 2006 IP
  2. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #2
    dct, Mar 26, 2006 IP
  3. Sbabb

    Sbabb Member

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    There isn't a way to do it with basic HTML or CSS alone. You need to use rounded corner images for each corner to do it without scripting, as far as I know.

    The tool that dct mentioned looks pretty cool.


    Scott
     
    Sbabb, Mar 27, 2006 IP
  4. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Dabs actually use background images to create those 'headers', the background images are referenced in the external css files.

    So, you need to create an image and use it in the background attribute of the div you use to create those rounded corners.
     
    Tam, Mar 27, 2006 IP
  5. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can use rounded images as backgrounds (the images can add to page loading time)
    or use nifty as mentioned above (save loads of un-needed code and increases page loading time)

    both have good/bad point.
     
    just-4-teens, Mar 27, 2006 IP
  6. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Tam, Mar 27, 2006 IP
  7. Custard

    Custard Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks Tam. Yeah, i must have missed that on the search.

    Thanks for the help guys.
     
    Custard, Mar 27, 2006 IP
  8. tarun1979

    tarun1979 Peon

    Messages:
    198
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    cut a circle in 4 pices and use table. see www.coachingindians.com

    this is very simple...
     
    tarun1979, Mar 28, 2006 IP
  9. 87654321

    87654321 Well-Known Member

    Messages:
    317
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #9
    actually the nifty corners posted by dtc seems to be a very good solution!
     
    87654321, Mar 29, 2006 IP