I'm trying to make some spaces into my webpage and when I test the result I've found that only Firefox (version : 27.0) haven't been spaced.
What's the instruction to write to add <br /> if the current Web browser is Firefox, please?
Thanks a lot!
I'm trying to make some spaces into my webpage and when I test the result I've found that only Firefox (version : 27.0) haven't been spaced.
What's the instruction to write to add <br /> if the current Web browser is Firefox, please?
Thanks a lot!
Try using $_SERVER['HTTP_USER_AGENT'] in php. It will have the string contains which browser the user is using. The code should look something like this.
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') { echo '<br />'; } ?>
`](http://stackoverflow.com/questions/10500551/br-not-working-in-firefox). – cf- Mar 19 '14 at 02:53