Is it better (faster/more stable) to use a CSS code or function for following?
To create two columns I have a function as following (just part of full code shown here):
(left column)
$content = '<div style="width: 45%; margin-right: 5%; float: left; text-align: justify; ">' . $content . '</div>';
(right column)
$content = '<div style="width: 45%; float: left; text-align: justify;">' . $content . '</div><div style="clear: both;"></div>';
Using it with a shortcode it works like a charm but it is still a function.
I could also use CSS code itself and create div+class in style.css (I only edit in html mode. I never use crappy visual editor).
Does it matter which way I use or is it prefer to use the style.css above functions.php?
Looking forward to answers, thanks in advance.