I need a bit of help with this... Im doing some work on our website and I want to incorporate a few CSS3 elements into the mix. The elements are box-shadow, border-radius and text-shadow.
As you can see from the 3 screen shots, in chrome, everything works as it should. There is a shadow around the outside of the site, the horizontal menu has a drop shadow under the text and headings on the page have rounded corners. Opera has a shadow around the outside of the page, drop shadow under the text but no rounded corners for the headings. IE9 has a shadow around the site, no drop shadow under the text and no rounded corners on the headings.
1. Box Shadow - this should work in IE9 but I have had to include a line in the css to run a file called ie-css3.htc. I would have included this anyway to make it work in IE8 but why doesnt it work in IE9 without it. Heres the css im using to create a box shadow around the outside of the page.
2. Border Radius - Aparently this should also work in all three browsers but it only seems to work in Chrome, Firefox and Safari. Opera and IE9 dont seem to be able to cope with the rounded borders. heres the css im usingCode:.shadow { -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 1); -moz-box-shadow: 0px 0px 15px rgba(0, 0, 0, 1); box-shadow: 0px 0px 15px rgba(0, 0, 0, 1); behavior: url(https://slp2.somerset.gov.uk/schools/rbsc/_catalogs/masterpage/ie-css3.htc); }
3 - Text Shadow - This should work in all browsers but again, it doesnt appear to work in IE9. CSS belowCode:.ms-WPHeader td { border:1px black solid; height:24px; padding: 0px 0px 0px 8px; background:url(https://slp2.somerset.gov.uk/schools/rbsc/Images/button_bg.jpg); border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px; behaviour:url(https://slp2.somerset.gov.uk/schools/rbsc/_catalogs/masterpage/ie-css3.htc); }
Code:.ms-topnav { font: bold 13px "Verdana"; border:none; border-right:2px solid #fff background-color:transparent; background-image:none; background-repeat:repeat; background-attachment:scroll; height:40px; text-shadow:1px 1px black; behavior: url(https://slp2.somerset.gov.uk/schools...ge/ie-css3.htc) }
All of the browsers im using should support CSS3 by default and I cant see any reason why its not working. The site is based around Sharepoint. Im starting to think that it might only be my computer that is not displaying the site correctly but because ive got the only copy of IE9 in the school, I cant test on anyone else.
Does anyone have any experience with CSS3 and help me out. Its not a major problem but I would like to get it right.
And sorry for such a long post.
Thanks!
James



LinkBack URL
About LinkBacks
Reply With Quote
