So I've read in several places "don't use tables for layout - use css." OK, sounds great, but how do it do that? I have a div that contains two labels, one selector, and one checkbox. How do I display these on a single line from left to right, instead of from top down - one on each line - as the default seems to be.
“If you’re good at something, never do it for free.” —The Joker
posted 5 years ago
There is a style sheet that controls the whole app - maybe that is having an affect. I put style="display:inline;" in the div that contains the elements, but that didn't change anything - except that now the 'submit' button that I had below the div is inline with the last element in the div.
I may punt on this one and let my dev lead handle it. ;)
Yes, !important will usually override anything inherited, but its use is widely considered as a tactic of last resort; in large part because it is such a sledgehammer that interrupts the normal flow of the cascade.
Unless we know that the OP's situation has reached the point of last resort, the !important modifier should not yet be a consideration.