Jump to content

Recommended Posts

On my website, I have this column that I want to be a specific height. It just occurred to me that on firefox (i use normally use safari), the height of the column in the table is way off. Could I target which browser displays which amount of pixels?

In safari I want it to be 200px and in firefox I want it to be 140px.

Link to comment
https://forums.phpfreaks.com/topic/186103-targeting-browsers/
Share on other sites

On my website, I have this column that I want to be a specific height. It just occurred to me that on firefox (i use normally use safari), the height of the column in the table is way off. Could I target which browser displays which amount of pixels?

In safari I want it to be 200px and in firefox I want it to be 140px.

 

Why can't you use a relative percentage rather than a static pixel value?

 

Anyway, CSS supports browser conditionals, if there is no other alternative.  If you Google or search these forums for, "CSS conditions", you should come across something useful.  Make sure to post your findings for additional help and/or so others can reference it.

 

I'm no CSS guru so maybe someone else can provide a solid solution, good luck.

Link to comment
https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982805
Share on other sites

Actually, there are no conditional comments for any browsers other than IE. You can find some CSS hacks that will allow you to target separate browsers however. But since these are hacks, and not official methods, there is always the possibility that they will not work in future versions of the browser, and they may possibly hit other browsers without you realizing it.

Link to comment
https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982811
Share on other sites

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.