For IE I can use this:
.content {
*padding: 10px;
padding: 10px
}
By doing so, the *-part will only be used for IE. Is there a tric like this for webkit browsers too? (Whitout having them called to a special .css for webkit browsers?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found a new way instead of using get_browser() for those who doesn’t have the extension installed. This new way is by using HTACCESS instead. You need the module “mod_setenvif” installed.
Here is the code you need to put in the .htaccess file.
It’s a regexp over the HTTP_USER_AGENT server variable. If it matches, we create a USER_AGENT variable to store the matching browser name.
Then, you can use the new server variable in your PHP code.
Have a good day.