View Full Version : Search content window displaced to the left on IE8
rafaelordaz
05-29-2010, 06:23 AM
After implement the search engine I notice it shifted the whole container <div> to the left once I do a search query this only happen on IE (I have only tested
IE8)
If you check this page, you'll see it look fine but when a search query is executed it shift all to the left.
http://www.medicalplussupplies.com/search_template.html
Why does it happen only when I do the search query?
I have check multiple times and I don't see any issues with the CSS.
Thanks for your help.
wrensoft
05-29-2010, 05:38 PM
I had a look at your site. But I didn't see problem with IE8. I assume you have already fixed up the CSS, or HTML in your search_template.html file that would have been the cause of the issue.
rafaelordaz
06-02-2010, 02:43 AM
I'm still having the problem, with IE 8.0.7600.16385 (32Bits) installed on Win 7 64 Bits.
http://www.medicalplussupplies.com/search.asp?zoom_query=test
I have not tried this on IE8 in other OS.
Thanks
Had a closer look at the source code output of "search.asp" and compared it to your "search_template.html" file.
It seems like you might have modified "search.asp" to insert the following tag at the very top:
<title>Medical Plus Supplies</title>
However, because this occurs before the template is displayed, it is actually appearing on the same line as the DOCTYPE statement, and it broke it. This is the first line of HTML returned by your search.asp:
<title>Medical Plus Supplies</title><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This caused the browser to render the page based on slightly different standards, and that's why the page appears differently. If you remove the title tag there, your page will be centered as on your template page.
We don't support changes to the ASP script, but you should always say in advance if you have modified it, because we can't see most changes from here, and it makes it difficult to guess what's happening.
If you just want to add a static title to the page, you should add this to the "search_template.html" file (in the correct place, within the <head>...</head>) instead of the "search.asp" file.
rafaelordaz
06-02-2010, 04:47 PM
Thanks a lot for your help.
I was not aware of that change. It must be error coping and pasting from another page, since I'm aware that your search.asp should not be modified.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.