Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / CSS3 across browsers?

CSS3 across browsers?

Started by mojo13 on 27 Jun 2011, 8:57 PM · Views: 2,320

Results 1 to 18 of 18
27 Jun 2011, 8:57 PM
#1
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

CSS3 across browsers?

Hi there.

I'm getting there with my site but notice differences when comparing browsers. I built in firefox and it seems to be ok there. One problem is no radial gradient in the body on other browsers (I'm using just a background colour there). Another is the lacko Nav wrapper appearance. That is no linear-gradient. Also rounded CSS corners using border-radius doesn't work in IE. I'm trying to use -webkit- to get things to work in Opera with limited success. Can anyone point me in the right direction here?

Link here if it helps:

https://www.chileno.co.uk

Cheers in advance:D

27 Jun 2011, 9:20 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS3 across browsers?

One problem is no radial gradient in the body on other browsers (I'm using just a background colour there).
That would be a solid color - - no gradient
Also rounded CSS corners using border-radius doesn't work in IE. I'm trying to use -webkit-
I think you will find spotty support across browsers for that
Images for the rounded effect for the most part display in all

Zen-Venom Get Bitten

27 Jun 2011, 9:23 PM
#3
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: CSS3 across browsers?

mojo13:

Hi there.

I'm getting there with my site but notice differences when comparing browsers. I built in firefox and it seems to be ok there. One problem is no radial gradient in the body on other browsers (I'm using just a background colour there). Another is the lacko Nav wrapper appearance. That is no linear-gradient. Also rounded CSS corners using border-radius doesn't work in IE. I'm trying to use -webkit- to get things to work in Opera with limited success. Can anyone point me in the right direction here?

Link here if it helps:

https://www.chileno.co.uk

Cheers in advance:D

The following should help on the linear gradients: will not work for ie until v10

-moz-linear-gradient(#F4F2F2, #E0E0E0);
-webkit-linear-gradient(#F4F2F2, #E0E0E0);
-webkit-gradient(linear, center top, center bottom, from(#F4F2F2), to(#E0E0E0));
-ms-linear-gradient(#F4F2F2, #E0E0E0); /*for ie10 */
-o-linear-gradient(#F4F2F2, #E0E0E0);

following should handle the rounded corners: works only in ie9

-moz-border-radius:0 0 10px 10px;
-webkit-border-radius:0 0 10px 10px;
border-radius:0 0 10px 10px;

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Jun 2011, 9:28 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS3 across browsers?

Thanks Clyde!!

Zen-Venom Get Bitten

27 Jun 2011, 9:36 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: CSS3 across browsers?

mojo13:

Hi there.

I'm getting there with my site but notice differences when comparing browsers. I built in firefox and it seems to be ok there. One problem is no radial gradient in the body on other browsers (I'm using just a background colour there). Another is the lacko Nav wrapper appearance. That is no linear-gradient. Also rounded CSS corners using border-radius doesn't work in IE. I'm trying to use -webkit- to get things to work in Opera with limited success. Can anyone point me in the right direction here?

Link here if it helps:

https://www.chileno.co.uk

Cheers in advance:D

following should handle the radial gradients: will not work in ie or opera

/* Firefox 3.6+ /
background: -moz-radial-gradient(circle, #1a82f7, #2F2727);
/
Safari 4-5, Chrome 1-9 / / Can't specify a percentage size? Laaaaaame. /
background: -webkit-gradient(radial, center center, 0, center center, 460, from(#1a82f7), to(#2F2727));
/
Safari 5.1+, Chrome 10+ /
background: -webkit-radial-gradient(circle, #1a82f7, #2F2727);
/
Opera cannot do radial gradients yet */

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Jun 2011, 9:54 PM
#6
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

thanks people, I appreciate the help. Will try these suggestions and post back:bigups:

27 Jun 2011, 10:29 PM
#7
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

great that fixed my Opera view.
background-image: -o-linear-gradient(#6161AB 0%, #040629 10%, #100B61 99%);

I had this but didn't seem to work:

background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #6161AB),
color-stop(0.10, #040629),
color-stop(0.99, #100B61)
);

The radial for the background isn't too important, I'll just wait for Opera to catch up.

I'll have a go at IE now, thanks muchly!

27 Jun 2011, 10:59 PM
#8
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

So, to update, I tried in IE but nothing works there at all. That is no round corners, no linear gradient (but can wait for IE10, although I tested in Windows Internet Explorer Platform Preview but nothing), margins are off and my box-shadow doesn't work either:

box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);
-moz-box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);
-webkit-box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);

These work in firefox and opera anyway.

27 Jun 2011, 11:18 PM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: CSS3 across browsers?

mojo13:

So, to update, I tried in IE but nothing works there at all. That is no round corners, no linear gradient (but can wait for IE10, although I tested in Windows Internet Explorer Platform Preview but nothing), margins are off and my box-shadow doesn't work either:

box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);
-moz-box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);
-webkit-box-shadow:10px 12px 35px 1px rgba(10, 10, 10, 1);

These work in firefox and opera anyway.

rounded corners, box shadow will work in ** ie9** but not in other versions.

linear gradients will not work in ie (at least until version 10)

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 Jun 2011, 7:27 AM
#10
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

Thanks Clyde.

Yes, I should have said I am testing in IE9 and no joy at all. I think my CSS file must have a conflict in it or sthing - to not even get rounded corners going there. The gradient will have to wait for IE10 - when is that - like next year? If I find out what works I'll post back.

Thanks again

28 Jun 2011, 11:46 AM
#11
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

For anyone else interested in using these effects, I've tested in chrome and all are working for me. That is :

-webkit-box-shadow:
-webkit-radial-gradient:
-webkit-linear-gradient:

So far it's only ie9 that I'm finding problems with.

28 Jun 2011, 12:20 PM
#12
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

So in ie9, I can get the effects (with the noted exception of the gradients) but only if I go F12 for developer tools> Browser mode and choose IE9. That is, it does not working in IE9 compatibility mode. Therefore, this must be the default mode when browsing to a website. So, does that mean that something else on my page is not compatible with ie? Otherwise I'm not sure why ie doesn't show the page as it is.

I'm obviously missing something major here, anyone got any ideas?

Cheers

Matt

28 Jun 2011, 1:02 PM
#13
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: CSS3 across browsers?

Thanks for the headsup. I have been wanting to fill a complex shape generated by mathematical formula with a gradient for absolutely years. Now I see the light.

http://www.w3schools.com/svg/svg_grad_linear.asp
http://www.w3schools.com/svg/svg_path.asp
http://www.w3schools.com/svg/svg_polygon.asp

I am so excited.

28 Jun 2011, 2:56 PM
#14
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: CSS3 across browsers?

mojo13:

So in ie9, I can get the effects (with the noted exception of the gradients) but only if I go F12 for developer tools> Browser mode and choose IE9. That is, it does not working in IE9 compatibility mode. Therefore, this must be the default mode when browsing to a website. So, does that mean that something else on my page is not compatible with ie? Otherwise I'm not sure why ie doesn't show the page as it is.

I'm obviously missing something major here, anyone got any ideas?

Cheers

Matt

IE in compatibility mode is essentially displaying the website in an older version of of IE

If you want to display the site using IE9 then don't use it in compatibility mode.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 Jun 2011, 5:42 PM
#15
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

great thanks, I see now, thought that was only available in the web developing tools. Looks like it;s all good. Thanks a lot for the help.:D

29 Jun 2011, 7:51 AM
#16
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: CSS3 across browsers?

If other people want to test their site in different versions of ie (including how it will look in ie10), the tool is here:

http://ie.microsoft.com/testdrive/
:wink:

26 Jul 2011, 10:40 PM
#17
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: CSS3 across browsers?

clydejones:

rounded corners, box shadow will work in ** ie9** but not in other versions.

You can make both work in earlier versions with a little script called PIE.htc. I did it with one of my sandbox installs. I think there are also a couple other scripts out there that do the same.

The best way to learn is to try stuff. But, back it up first.

26 Jul 2011, 11:57 PM
#18
accelbusiness avatar

accelbusiness

Banned

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: CSS3 across browsers?

CSS3 & HTML5 definitely not compatibly with IE 6/7/8. :(

John Rau
Accel Business Solutions
Ottawa Web Design and Development