lAZLf Posted December 23, 2009 Share Posted December 23, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/186103-targeting-browsers/ Share on other sites More sharing options...
Maq Posted December 23, 2009 Share Posted December 23, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982805 Share on other sites More sharing options...
haku Posted December 23, 2009 Share Posted December 23, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982811 Share on other sites More sharing options...
lAZLf Posted December 23, 2009 Author Share Posted December 23, 2009 I found the problem. Since my pages are made in PHP, I forgot to type in the DTD. Nooby mistake. Quote Link to comment https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982821 Share on other sites More sharing options...
haku Posted December 23, 2009 Share Posted December 23, 2009 Ahh, that's a huge one. Major component of cross-browser compatibility. Quote Link to comment https://forums.phpfreaks.com/topic/186103-targeting-browsers/#findComment-982833 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.