About a week or so ago, the guys at wordpress had disabled the ability to use inline CSS. The reasons are spread across wordpres. I for one don’t see the need to block all CSS. I used to use inlines for subtle things such as giving my pictures an one pixle border then lifting that border off the image, and finally pushing that image off of the text. Real harmful stuff, eh?
So, after a few days of thinking I came up with several options. Lo and behold one worked.
My first thought was to switch it from inline, to embedded. You probably are wondering the difference…Inline is when you grab a <p> and add a style attribute to it, then the CSS goes in the style. Embedded is when you define classes an apply them. Yes, style is a valid tag and is still applied in X/HTML 4.01 Strict. But the WordPress bot or whatever strips the CSS out. I find this odd because it strips the CSS out but leaves the empty <style> tags.
Once again I began thinking. I had a thought of reverting to old school style of programing. Yep that’s right, use plain old HTML tags. That image above…I can do almost the same thing with normal X/HTML than I did with CSS. Our <img> tag has a nifty attribute called align. It does the same as
So here’s my positioning, it has another attribute border. Of course you don’t have sure prescise measurements but it gets it done.
Another thing that you cannot do is change the spacing. Or else I can’t think of any way to without CSS.
Filed under: Computer |