I have a question regarding cross-browser compatibility that I need help with.
Currently, in my design project, I am using the display:inline-block
CSS style option to achieve a specific layout and style. However, this is not supported by IE8 and other older browsers, causing my design to break.
My question consists of two parts: 1 - Is there an alternative method to achieve a similar effect for IE8? 2 - If not, how can I ensure my design degrades gracefully?
Here is an example from my design where I am using the
<div style="width:20px; height:20px; display:inline-block; background-color:rgb(200,120,120); margin-right:10px;"></div>Direct
. It is a 20x20 pixel color block used to represent colors in a chart.
This issue arises whenever I require more control over formatting and layout within text or other elements.
In my current project, I will be phasing out support for older browsers due to reliance on the canvas element. However, I still want to address this problem for future reference as it has come up multiple times before.
Thank you for your assistance!