My Blog
contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!
Tag Archives: CSS
Keep your Admin Interface CSS Separate
There are a number of performance arguments about combining assets to reduce HTTP requests and speed up your site. I agree! However, I do have to say that there is such a thing as overkill – to the detriment of … Continue reading
Combining Print and Screen CSS
When running YSlow the other day, I was reminded that I was loading 2 stylesheets when only one would suffice. So, let this be a reminder to you – and a quick excerpt at my own solution: Combine your Print … Continue reading
Javascript and CSS Compression and Cache
I’ve been researching caching and compression techniques for my external resources for some time. My first design of JEMDiary was very greedy with HTTP connections. Couple that with having a less-than-perfect host (Dreamhost bleh…), users could feel the burn. I … Continue reading
Protect Your Image from Download
I came across a great idea dealing with protecting image downloads from the site. Now, this is not fool-proof. There are lots of other ways to download the image, but this may stop the casual downloader. Nope, its not disabling … Continue reading
Printing a small segment of the page using JQuery
Using Yahoo’s Grid Tools, I created a pretty decent page layout. After all this was complete, I needed to generate a printable version of only a portion of the site. This was a particular set of instructions. I decided to … Continue reading
Enabling Javascript Specific CSS
While reading the blog post about Enabling Javascript specific CSS and the comments, I started thinking about my own ways to implement this. And how to do it validly. Why Use Javascript Specific CSS Believe it or not, we still … Continue reading
Flash of Unstyled Content – in FireFox 3
So I’ve heard of the Flash of Unstyled Content before – but never really had this problem. I always use a LINK tag for my stylesheets. However, I just ran into it today – in FireFox even with a LINK … Continue reading
Remove Internet Explorer Button Border
Internet Explorer provides an additional border to any BUTTON element in the page if you don’t explicitly assign a 0px border to it. i have a bunch of buttons on a design that I’d like to have a 1px #fff … Continue reading
Another example of CSRF – in CSS
Just saw this really cool example get submitted on one of my websites testing for CSRF: ?View Code CSS1 #logo{background:url(deletepost.process.php?id=12345&userID=12345); Just another great example of why you should 1) not use GET for irreversible changes 2) filter filter filter! (I … Continue reading
Name CSS Classes More Descriptive
One thing I remember being pounded into my head is to not create CSS classes after their physical attributes. So, for example, if your error text is red, do not call the class red. Instead, be more descriptive of the … Continue reading
