I make more efforts to separate my html structure from the presentation, but sometimes when I look at the complexity of hacks or workarounds to get things to work in a cross browser, I am amazed at the enormous collective waste of productive hours that are put into it.
As I understand it, plugins have never been created to create layouts, but because many layouts need a footer, because they are often used. To clear the floats, you can add an empty div that clears both sides (div class = "clear"). It is simple and cross-browser works, but it adds โnon-semanticโ html, and does not solve the presentation problem in CSS.
I understand this, but after looking at all the solutions with their advantages and disadvantages, it seems to make sense to go with an empty div (predictable behavior in browsers) rather than creating separate stylesheets, including various css hacks and workarounds, etc. . which should also change as CSS evolves.
Is it ok to do this while you understand what you are doing and why you are doing it? Or is it better to find CSS workarounds, hacks, and a separate structure from the presentation at all costs, even if the provided CSS presentation tools are not developed to the point where they can deal with such basic layout problems?
css
Frank
source share