Quick question: I need to get a few divs inline, and I have three ways to choose from. Should I use display: inline-block, floats, or display: table? They all work, but I want to know if any of them are good practice/bad practice.
None of the different kinds of divs have particular stigmas associated with them as far as I know, but they do each have different specific purposes.
In that case I guess I'll take the compatible one. display: table doesn't work in IE 7 and lower (not that the rest of the page works, anyway) Razz
Deep Thought wrote:
In that case I guess I'll take the compatible one. display: table doesn't work in IE 7 and lower (not that the rest of the page works, anyway) Razz
That's probably your best idea; at least it will be easier to make it be compatible later if you so decide.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement