1

I have to implement a tab control identical in terms of style to what can be seen here:

http://funds.ft.com

This is the example I've come up with so far:

http://jsfiddle.net/MZUQK/

The biggest issue I'm facing is that the first one has 'rounded' corners that was implemented automatically by the ASP.NET AJAX used to develop the site.

As I'm not using ASP.NET AJAX is there an easy way for me to achieve the same effect that will work on IE6 as well as real browsers? Is the best way to do this via jQuery or CSS?

edit: if it's not possible to get rounded corners in IE6 without images, what's the best way to do it in the rest of the browsers?

3
  • 1
    IE6 is dead. don't speak of it. Commented Sep 17, 2010 at 16:14
  • 4
    @Elzo, IE6 is a zombie. Yes, it's dead but you still have to be damn careful around it! Commented Sep 17, 2010 at 16:20
  • @Elzo: IE6 isn't dead. Far from it. Unfortunately. I've seen and answered this comment so many times, I finally decided to just write it down once: blog.niftysnippets.org/2010/10/ie6-undead-browser.html Commented Oct 5, 2010 at 16:58

4 Answers 4

3

I like the jQuery Corner plugin. It'll work on IE7 and IE8 with IE7 compatibility mode. Of course, IE6 ignores it. It's really lightweight and beats loading jQuery-UI just for corners.

$('#yourDiv').corner();
Sign up to request clarification or add additional context in comments.

1 Comment

This is by far the easiest way.
1

By far the easiest way I've found is using Jquery UI for rounded corners.

It's as easy as including two files and adding this to your class declarations:

<element class="ui-corner-all myclass"> (round all corners of element)

or

<element class="ui-corner-tl ui-corner-tr myclass"> (round top left, top right)

IE is not rounded corner friendly by default, so to exactly duplicate the user experience you'd have to throw in a Jquery or other substitution script. My big corporate clients have unanimously agreed that's not worth the effort--since it gracefully degrades to square corners, IE users will have to deal with it--they chose to use the inferior browser in the first place.

A close second place is the Border radius option (http://www.css3.info/preview/rounded-border/) but it's more syntax to worry about. Using Jquery UI also opens up great features such as Autocomplete, Tabs, Buttons (improvement on standard HTML buttons) etc.

Comments

0

To get rounded corners working in IE 6, you'll have to use images

2 Comments

Well...it can be done with a bunch of really small table cells and background colors...but it ain't pretty.
thanks for the input @marcgg, I've updated the question to reflect.
0

Here's a good example, creating rounded corners using JavaScript :

Nifty Corners : http://www.html.it/articoli/niftycube/nifty1.html

Using Canvas Element (even in IE) : http://www.netzgesta.de/corner

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.