Jump to content

Recommended Posts

http://crazy4dollars.com

for some reason, when i view the the file from my hard drive, (no javascript) it looks ok, but when i view it online, i modified it obviously for the webpages purposes, and the input box gets resized from 35px height to 53px and the width goes from 166px to 184px, i dont know what is causing it, but i have a guess that its some javascript code that doesnt work with this input field or something.

 

Reply as soon as ppossible, ANY help will be greatly appreciated.

On a side note, i copied all the html as is, only difference is that there is javascript added to the online webpage. Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/64002-some-weird-bug-in-html-or-js/
Share on other sites

Are you looking at the page in two different browsers? IE tends to do weird stuff with CSS, so if you're looking at it on your HD with FireFox, and then with IE on the actual website, that might explain your problem.

 

As far as resolving it, write a PHP script to determine the client's browser (like the following):

<?php
if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']),"msie"))
  // Internet Explorer
elseif(strstr(strtolower($_SERVER['HTTP_USER_AGENT']),"firefox"))
  // FireFox
elseif(strstr(strtolower($_SERVER['HTTP_USER_AGENT']),"opera"))
  // Opera
else
  // Some other browser...
?>

 

And use a different CSS file in each case. Manually code each CSS file and test it in the corresponding browser. (Usually you can use the same CSS in FireFox and Opera.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.