Wordpress layout differes between browsers.

James2

Elite Member
Joined
Jun 3, 2011
Messages
1,735
Reaction score
1,281
After setting up a page on my wp site, I checked to see if it looked good live in Firefox and it was fine, but when I check it out in chrome the page looked messy. Unequal white space between blocks of text and images etc. Is there a way to get around this?

Thanks in advance,

James :)
 
Normally the problems are with IE, but idk in ur case. You must rewrite the code from the start IMO.
 
Great lol.
 
James2,

What exactly looks messy? Are you having alignment problems with certain elements? You shouldn't have to re-write all your code. It may only be a matter of tweaking a couple of things or adding some lines in your CSS file.

If you look at it in chrome, you can right click on any element and select "inspect element". Then you can view the code that is giving you problems. You can even make changes from right inside the developer tool to see if you can fix it.

Here is more about the tool,

https://developers.google.com/chrome-developer-tools/docs/overview

Hope that helps,

Shawn
 
All browsers come with their own defined css style sheet - all different - ie; margins, fonts, padding ect., that's why you get looks from different browsers.

The way to get around this, although you will have redo some of the css, is to use a css reset like meyerwebs reset

Alternately, if your into HTML-5, you can use normalize.css .
 
Thanks guys, great info. I am a bit of a noob, so I don't know much code. I would put the link on here and show you what I mean, but that's not allowed. basicaly on my WP page, I have a large image at the top of the page, then text, then a pricing table and so on 4 times. it looks fine in firefox, but in chrome the white space is missing in between the first image and the first block of text so that they are pushed up against each other, but the rest of the elements are spaced correctly. Also on the page editor in the WP dashboard, it all looks fine too. Good info though guys, looks like I have some more learning to do. Thank you :)
 
Normally a design has to look almost the same in FF and Chome. If your design is messy in Chrome, then it could mean that you have used something that is not meant for chrome. When designing, try to use standard css methods, rather than anything fancy.
 
Last edited:
Hi g0g0I. Hi haven't done anything fancy. I haven't used any code at all. Just the WP dashboard and a few plug ins. I don't know any code if I am honest apart from maybe removing the copyright blurb from themes and adding iframes.
 
James, try the plugin "WordPress Twitter Bootstrap CSS". On the settings page choose Yahoo UI reset css V3.6.0. No coding at all.
 
Hi g0g0I. Hi haven't done anything fancy. I haven't used any code at all. Just the WP dashboard and a few plug ins. I don't know any code if I am honest apart from maybe removing the copyright blurb from themes and adding iframes.

PM me your code then. I will solve it for free for ya :P
 
All browsers come with their own defined css style sheet - all different - ie; margins, fonts, padding ect., that's why you get looks from different browsers.

The way to get around this, although you will have redo some of the css, is to use a css reset like meyerwebs reset

Alternately, if your into HTML-5, you can use normalize.css .

Eric Meyers css reset works. I add it to the top of all of my custom work. You'll need to check your css files. It might already be included.

You also need to make sure you aren't adding the reset after your main css files or you're going to lose your formatting.
 
This is why I love BHW :) Thanks a bunch guys.
 
Back
Top