Solved

How do I create rounded buttons in IE 6?

Posted on 2011-02-27
6
626 Views
Last Modified: 2013-12-08
How do I create rounded buttons in IE 6? Also is there a way to display the same color (i.e. a background or button color) in IE 6 that I can show in Firefox?
0
Comment
Question by:mikesExpertExchange
6 Comments
 
LVL 3

Expert Comment

by:dtocci
ID: 34991992
Standard input buttons in IE6 are going to be square.  There's no easy way to change that.  If you don't have many buttons and the text on them doesn't change, you can create graphics and use <input type="image">
0
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 34996924
You may visit this site to create rounded corner images:-

http://www.roundedcornr.com/

The images can be used in Image Buttons.
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 35016630
In my honest opinion I wouldn't bother.  By doing all that extra work you are giving IE6 users an excuse not to upgrade their 10 year old software - software makes life hell for most web developers.

Most of my biggest clients use IE6 (miltary/healthcare clients) and I have made it quite clear that once they get their act together, they'll see all the CSS3 lovelyness that's waiting for them...!

If you do start messing around making your code IE6 friendly, then you're going to be creating lots more work for yourself in the future debugging it all!
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 3

Expert Comment

by:dtocci
ID: 35019162
I agree with Rouchie.  However maybe you're at a company that hasn't upgraded workstations in a while.  I know of one that still has its employees using IE6 if you can believe that.  If you want the buttons to look exactly the same on all browsers and you want it to be somewhat future-proof your only real option is to create a graphic for each button and use something like <input type="image">. Doing that won't cause bugs or mess anything else up. It just can be a pain if you want to have different text on a button.
0
 
LVL 25

Accepted Solution

by:
Rouchie earned 500 total points
ID: 35019244
Yeah agreed.

Or... use a DIV with a background image that represents your button, then use a hyperlink in the div that contains the text.

Like this...

<div style="width:100px; background:url(myButton.gif) no-repeat left top">
   <a href="somepage.htm" style="display:block; font-weight:bold">Link Text</a>
</div>

Open in new window


The problem is that this is harder to position in line with text as various browsers get confused about what's going on.  We all agree - keep it simple and f*** IE6 :-)
0
 
LVL 1

Author Closing Comment

by:mikesExpertExchange
ID: 35262373
thanks for your help
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question