![]() |
New: Use your My.Vidahost details for a single login! Or use your forum login on the right as normal.
Sign up to a My.Vidahost account and a forums username here. If you already have a My.Vidahost account, but not a forums account, please login to My.Vidahost and click the Forum button on the sidebar.!
| | ||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| | #1 (permalink) |
| Hosting newbie Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
| IE formatting
Hello I wonder if anyone can help, I have created my site located here www.ajhdigital.co.uk. Unfortunately I seem to have a problem where the content (especially the galleries) is pushed down within the containers in IE but is fine in Chrome. I have attatched some screenshots below : This is how the gallery looks in Chrome ![]() But in IE you can see it has been pushed down (even the logo on the left) ![]() somehow it seems to be padding but I cannot see how. Cheers Gareth |
| | |
| | #2 (permalink) |
| Senior Member Join Date: May 2009
Posts: 146
Thanks: 7
Thanked 8 Times in 7 Posts
|
IE and other browsers all have default padding and margin values assigned to different elements. Try putting: * { padding:0; margin:0; } At the top of your CSS stylesheet as this should make padding and margins the same across different browsers. For more info, have a look at http://meyerweb.com/eric/tools/css/reset/ Last edited by weaselandalf; 22-11-2009 at 09:18 PM. Reason: added link |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Mar 2009 Location: Staffordshire, UK
Posts: 227
Thanks: 11
Thanked 26 Times in 23 Posts
|
looks good on Mac FF. some realy nice photos in there too.
__________________ SEO - with proven results CMS systems - take control and grow your website Cybernautix Ltd - Web Design and SEO Staffordshire - 01782 783066 - try us! | Follow me on Twitter -> http://twitter.com/f1seo |
| | |
| | #6 (permalink) |
| Senior Member Join Date: May 2009 Location: UK
Posts: 1,037
Thanks: 36
Thanked 105 Times in 93 Posts
|
Glad you got it sorted. You have some great images there
__________________ I'm just a Blogger and Web Designer in Training Latest Clients: Domestic Cleaning Gloucestershire | Apple iPhone and iPad Accessories |
| | |
| | #8 (permalink) |
| Senior Member Join Date: Mar 2009 Location: Staffordshire, UK
Posts: 227
Thanks: 11
Thanked 26 Times in 23 Posts
|
if you''ve done everything else then use conditional comments. Bit nasty,but hey - they work! Sometimes there's no option you need something like this in the <head> Code: <!--[if IE 7]> <style type="text/css">your IE7 correction styles go in here</style> <![endif]-->
__________________ SEO - with proven results CMS systems - take control and grow your website Cybernautix Ltd - Web Design and SEO Staffordshire - 01782 783066 - try us! | Follow me on Twitter -> http://twitter.com/f1seo |
| | |
| | #9 (permalink) | |
| Hosting newbie Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
| Quote:
You can see the problem here IE NetRenderer - Browser Compatibility Check - | |
| | |
| | #10 (permalink) |
| Senior Member Join Date: Mar 2009 Location: Staffordshire, UK
Posts: 227
Thanks: 11
Thanked 26 Times in 23 Posts
|
Hi nothing goes in the CSS file. It goes in the HTML in the <head> section. here's one from our site (if you have a look at the source you'll see where it goes) Code: <!--[if IE 7]>
<style type="text/css">.mainmenuitem a {vertical-align: 65%;}</style>
<![endif]-->
it's specific to IE7. IE8 doesn't do it, and neither does FF. So by hardcoding in a slight fix into the head of the HTML it can be adjusted. The other thing you can do if you've got a lot of changes for IE7 is to use the conditional code like above, and import a second stylesheet. As long as you have it importing after your main sheet it should take precedence. So for example: Code: <!--[if IE 7]> <link rel="stylesheet" href="ie7.css" type="text/css" /> <![endif]-->
__________________ SEO - with proven results CMS systems - take control and grow your website Cybernautix Ltd - Web Design and SEO Staffordshire - 01782 783066 - try us! | Follow me on Twitter -> http://twitter.com/f1seo |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |