Forums About Us cPanel My.Vidahost Vidahost
Vidahost Forums - UK Hosting and Domains

New: Use your My.Vidahost details for a single login! Or use your forum login on the right as normal.

Remember Me

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.!


Go Back
  Vidahost Forums - UK Hosting and Domains > Site Design and Development > Coding and Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 22-11-2009   #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
Gareth_H is offline   Reply With Quote
Old 22-11-2009   #2 (permalink)
Senior Member
 
weaselandalf's Avatar
 
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
weaselandalf is offline   Reply With Quote
Old 23-11-2009   #3 (permalink)
Hosting newbie
 
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Hi

That seemed to do the trick, its just thrown all of my other formatting out now.

Cheers

Gareth
Gareth_H is offline   Reply With Quote
Old 23-11-2009   #4 (permalink)
Senior Member
 
Cybernautix SEO's Avatar
 
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
Cybernautix SEO is offline   Reply With Quote
Old 24-11-2009   #5 (permalink)
Hosting newbie
 
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks

I Think do a bit better with photo, than creating websites.

Gareth
Gareth_H is offline   Reply With Quote
Old 24-11-2009   #6 (permalink)
Senior Member
 
Chrissy Poo's Avatar
 
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
Chrissy Poo is offline   Reply With Quote
Old 26-11-2009   #7 (permalink)
Hosting newbie
 
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
all sorted in Chrome, Firefox and IE8, however the formatting is way out in IE6 & IE7, anyone any ideas?
Gareth_H is offline   Reply With Quote
Old 26-11-2009   #8 (permalink)
Senior Member
 
Cybernautix SEO's Avatar
 
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
Cybernautix SEO is offline   Reply With Quote
Old 26-11-2009   #9 (permalink)
Hosting newbie
 
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Cybernautix SEO View Post
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]-->
Cheers, tried that but cant seem to get to work, what should go in the CSS file?

You can see the problem here IE NetRenderer - Browser Compatibility Check -
Gareth_H is offline   Reply With Quote
Old 26-11-2009   #10 (permalink)
Senior Member
 
Cybernautix SEO's Avatar
 
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]-->
we needed this because there's a prob with IE7 not aligning the tabs correctly at the top.

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]-->
and that has only your CSS adjustments in there
__________________
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
Cybernautix SEO is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:12 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.5.1 PL1