Ask the Masters: All About CSS
This is a simple thread aimed to help people with CSS (Cascading Style Sheet). the web styling language.
I'm going to do my best to answer all your questions about CSS. how to use CSS to do specific behaviors and general inquiries about the CSS syntax.
Don't hesitate to ask!
All CSS Gurus are welcomed to contribute.
Rounded Curved Corners for IE - CSS
rahnas at Google Code created an .HTC script for curved border corners for IE. it works with IE8, IE7 and IE6 (tested myself)
it's very simple. Download the script from curved-corner - Project Hosting on Google Code and add 3 simple lines in your main CSS document
as you see, it's .class based so you can apply curved border corners to any element with the class "curved". don't forget to place border-radius.htc in the same CSS directory (same path).
If it does not work in your web server, it can be caused by MIME types, to fix this do the following:
- Go to your cPanel (or your web server panel) and click the MIME Types link
- Under MIME Type, add text/x-component
- Under Extensions, add htc
- Restart Apache Web server
more information at Curved corner (border-radius) cross browser | HTML Remix
This is non-valid W3 CSS code. if you would like to keep your main CSS document clean, it's best to create a new separated CSS file for hacks/tricks and add it to your HTML file or import it using @import in CSS