A month ago (I think) it was the first time that I notice that there were problems with viewing some website made with CMS MODX in Chrome and Safari (Firefox does well). All the websites have the newest update of MODX. (2.2.6).
I thought maybe there is a problem with the newest php 5.3 and modx. Last year there was a update done by our hostingcompany. Do I have to change something in a (html) code to fix this and make php 5.3 works? Is there somebody who can help me to fix this problem?
Thanks!
regard, Henk-Jan
MODX doesn't do anything with your HTML and CSS code except send it to the browser. If there's a problem, it's likely something in your HTML and/or CSS code that is not completely cross-browser compatible. Have you validated your code here:
http://validator.w3.org/? That would be the first step.
-
☆ A M B ☆
- 24,524 Posts
If something works in one browser but not in others that means a Javascript or HTML error. Firefox is very forgiving; it will more-or-less render a page even if you have some bad HTML. If you do a "view source" in the latest versions of Firefox, it shows things in red to let you know there's something wrong. Some false positives, but still a quick way to generally validate your HTML.
-
☆ A M B ☆
- 894 Posts
Got a link and a better description of what exactly is the problem your experiencing? Browsers have different rendering engines and both Safari and Chrome use Webkit which seems to be the browsers your having issues with.
-
☆ A M B ☆
- 24,524 Posts
Definitely check your source and run it through the W3C validator.
<!DOCTYPE html>
<html lang="en">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Duet etaleren & styling bureau | Duet is een jonge onderneming met verstand van etaleren</title>
-
MODX Staff
- 2,502 Posts
Well that will break stuff. Should it be rendered as HTML5 or XHTML 1.0 Transitional (which should never ever be used—evar. IMO). Two opening html tags.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
☆ A M B ☆
- 147 Posts
Yup - I always use the W3 Validator - it is very easy to overlook something at times. Nice site btw!
Billy Koch
Follow me on Twitter:
@DefKoch
Skype: billyk0ch