Theme code seems wrong - Post ID 183477

User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Yes, Ron. You're right on that one. I didn't spot it before you pointed our noses at it. But as far as I know, it will still work with the px given to the attributes on the web. Maybe it won't validate though, I haven't checked.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 38401 Photo


Senior Advisor
10,951 posts

Ah I see what you mean there Ron on the "px". Inline styles should be stayed away from as much as possible though and CSS used for more versatility, but it would be correct using the "px" there as you show so yeah that would be not correct in the code, and I'm sure it's how it "used" to be done years ago.
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

I don't think px was used in attributes 'years ago'. I have the files of a site that I created back in 2000 with the first version of the programme Homesite (ha, those were the days...), and there are no px in the size attributes of images. I'd rather think that it happened during a time when people started to use CSS, and it got mixed up somehow.

Well, never mind. Time to close this topic?
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.