iPixel Posted August 26, 2010 Share Posted August 26, 2010 Long story short i dynamically create small tables with info that looks very "label" like. And i want to show 2 per row then break 2 per row break etc.... till end of query. the code is simple <table cell... cell.. border... width... style="display:inline;> now the issue, display:inline works on IE/FF but not Safari/Chrome display:inline-block works on Safari/Chrome/FF but not IE display:inline-table works on Safari/Chrome/FF but not IE I need this to work on Best case scenario all 4 browsers Worst case Scenario IE/Safari. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/211825-displayinline-on-a-browser-compatibility/ Share on other sites More sharing options...
Omirion Posted August 26, 2010 Share Posted August 26, 2010 Why don't you get the Navigator type with JS and modify the CSS properties accordingly? I realize that getting the the Navigator agent isn't "Good practice" but in your case it's just what you need. Quote Link to comment https://forums.phpfreaks.com/topic/211825-displayinline-on-a-browser-compatibility/#findComment-1104139 Share on other sites More sharing options...
iPixel Posted August 26, 2010 Author Share Posted August 26, 2010 Im not familiar with Navigator... can you link it please. Quote Link to comment https://forums.phpfreaks.com/topic/211825-displayinline-on-a-browser-compatibility/#findComment-1104146 Share on other sites More sharing options...
Omirion Posted August 26, 2010 Share Posted August 26, 2010 Im not familiar with Navigator... can you link it please. By navigator i mean the Browser that you're using. Here is a link to the navigator object properties http://www.comptechdoc.org/independent/web/cgi/javamanual/javanavigator.html In general your JS function can look something like this. function navInit(){ var nav = navigator.appName switch (nav){ case "Microsoft Internet Explorer": Make CSS adjustments break; case "Netscape Navigator": Make other CSS ajustmets break; } } If you need further help please post. Quote Link to comment https://forums.phpfreaks.com/topic/211825-displayinline-on-a-browser-compatibility/#findComment-1104162 Share on other sites More sharing options...
lostprophetpunk Posted August 26, 2010 Share Posted August 26, 2010 <table cell... cell.. border... width... style="display:inline;> In that code you are missing the ", like so... <table cell... cell.. border... width... style="display:inline;"> Could it possibly be some conflicting css code at all? Quote Link to comment https://forums.phpfreaks.com/topic/211825-displayinline-on-a-browser-compatibility/#findComment-1104172 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.