January 14, 201016 yr Today i have uploaded a site My link its ok in ie7 and firefox but one of my friends said that in ie8 it goes left. now i feel frustrated. how can i fix the problem? any suggestion for me please?
January 14, 201016 yr Today i have uploaded a site My link its ok in ie7 and firefox but one of my friends said that in ie8 it goes left. now i feel frustrated. how can i fix the problem? any suggestion for me please? Well the site is totally aligned to left in both Firefox, IE 7 & 8 if that is what you mean, but other than that I see no difference between the browsers.
January 14, 201016 yr Author here is the css.i used this code in several sites and that sites are center, but this time this site go left body { text-align:center; } #wrapper { margin: 0 auto; width: 1000px; text-align:left; height: 1000px; } above code works for my other site but not working for this site
January 14, 201016 yr Have you tried adding the following to the head of your page?: <meta content="IE=7" http-equiv="X-UA-Compatible"/> This makes IE8 markup as IE7, bit of a hack...
January 14, 201016 yr i've had funny problems like this in the past, have you tried removing text-align:left; from #wrapper and only re-insert it in the necessary elements?
January 14, 201016 yr Try removing the google translation div ..... I think this may be causing the issue.
January 15, 201016 yr Author mine is 1405 inch monitor and using ie7, and the site is looks fine here.. but i think site is not centered in ie7/ and ie8
January 15, 201016 yr Try declaring the margins on an individual basis. i.e. ]#wrapper{ margin-left:auto; margin-right:auto; this always works for me! Also, you do realise that screens that are set to a resolution 800x600 will not view your site correctly, they will have an overlap on the horizontal. You may want to change your width of the wrapper to 950px - i know 800x600 sound old but there are still peeps our there using it.
Create an account or sign in to comment