Image gap
Just one of those CSS annoying problem that related to DOCTYPE.
http://developer.mozilla.org/en/docs/Images,_Tables,_and_Mysterious_Gaps
Spent good few hours scratching my head on this, I know I should have looked at the DOCTYPE generated by my editor (Eclipse Aptana) on the first instance, but I didn’t.
And what makes it even worse, I don’t actually need to put any DOCTYPE [...]
Designing with web standards
I have just finished reading designing with web standards by jeffrey zeldman.
I got the book from my local library. I couldn’t believe my eyes when I saw this book on the shelf as the IT section of my library is not known for its currentness.
It was an interesting read, if you deal with HTML and [...]
Note
1. Doctype declaration can make a difference in the way your CSS is displayed. Forgot what DTD Dreamweaver produces, but it makes IE7 setting margin: 0px auto doesn’t center an element. Will investigate.. i might be wrong.n2. Setting vertical-align to middle on img somehow created a gap in IE7 eventhough you have set the height [...]
Avoiding the inlines
Yes, inline CSS and Javascript are bad and not elegant, but it’s quicker to build, ie no need to switch between the html and css files, furthermore for a site that the layout is somewhat not uniform, why would you want to declare a style in css file if the style is only applicable for [...]
Recent Comments