Jump to content

display:inline on a <table> browser compatibility.


Recommended Posts

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!

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.

<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?

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.