• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

CSS3 in xenForo?

James

Well-known member
#8
XenForo intelligently uses CSS3 and HTML5 where appropriate. If browsers do not support it, they ignore it and don't have the luxury of feeling the beauty of XenForo ;)
 
F

Floris

Guest
#10
It's not a fallback system, it's just how CSS works. Browsers won't render what isn't supported, but coding css3 there where if the browser doesn't support it, it doesn't break the design, is basically the fallback. However, I am sure some elements are put in place to help IE support specifically, but which site doesn't do that.
 
#11
It's not a fallback system, it's just how CSS works. Browsers won't render what isn't supported, but coding css3 there where if the browser doesn't support it, it doesn't break the design, is basically the fallback. However, I am sure some elements are put in place to help IE support specifically, but which site doesn't do that.
Yeah, that's basically what i meant.
 
#12
Well basically CSS3 is not the problem, since not see rounded-corners and shadows is not important. But what happens to html5? Because we know that IE8 does not support it, how xenForo replaces the use of html5 for IE8? I guess that will have a script that detects the user's browser and based on that load the page or another, but only speculate. Because they do but may have problems.
 

James

Well-known member
#13
Well basically CSS3 is not the problem, since not see rounded-corners and shadows is not important. But what happens to html5? Because we know that IE8 does not support it, how xenForo replaces the use of html5 for IE8? I guess that will have a script that detects the user's browser and based on that load the page or another, but only speculate. Because they do but may have problems.
HTML5 can be used in browsers that don't support the tags by creating the elements using JavaScript. I assume this is what Kier and Mike have done :)
 

Kier

XenForo Developer
Staff member
#14
HTML5 can be used in browsers that don't support the tags by creating the elements using JavaScript. I assume this is what Kier and Mike have done :)
To what tags are you referring? Generally speaking, we do not generate any tags with JS.
 

James

Well-known member
#15
Oswaldo said that IE8 doesn't support HTML5 and I took a guess that you'd used JavaScript's createElement to create them - looking at your reply I guess I was mistaken :p
 

Kier

XenForo Developer
Staff member
#16
Oswaldo said that IE8 doesn't support HTML5 and I took a guess that you'd used JavaScript's createElement to create them - looking at your reply I guess I was mistaken :p
One of our requirements for the front end is that it is fully operational without Javascript. If we relied upon tags being built with Javascript, that would fall over. So we don't.