Welcome to my blog. I am a Web designer from the Northwestern UK (near Manchester). Aside from the usual rants and observations, I also plan to share any of the cool or useful CSS/JS and maybe a bit of Flash snippets I discover in the problem solving that is associated in my Day to Day job.

Thursday, October 19, 2006

Some Interesting Jscript/CSS stuff

Horizontal and Vertical Centering is harder in CSS than it should be, It's obvious the CSS mark-up was created by engineers/programmers not designers (GRRR!). Why when it was so simple in a big table cell, it's like we have gone backwards. But today I have come across a nice article that show how to do it. Including the super difficult (if not almost impossible. Again GRRR!) Vertical Centering, It's still a pain in the ass as you have to put in a fixed height in pixels to get it to work. so it's no good for ay sort of dynamic or flexible content, but the article explains it very clearly, RE Blog : Horizontal and Vertical Alignment.

Another thing that's more difficult that it should be is opening new windows from links, while keeping your HTML nice and valid. I know there is an augment against this, and that if people want to open the link in a new window they will do it themselves, but what about linking to say a PDF as that would open in the same window, while Not 'exiting' your site, but all the navigation for being within your site gets removed. Anyway whatever the arguments, it's Javascript to the rescue (Again, who would have thought Javascript would escape from all the cheeasyness it powered in the 90's to become the power behind all sorts of cool stuff in 2006). here is the instruction page along with the script it's self and a sample page, It's all done by those people at 456 BEREA St..

0 Comments:

Post a Comment

<< Home