Skip to content

Entries with the tag “html”

These entries have all been tagged with “html”.

A Deep Dive Into Print Css Headers and Footers

For a project I’m working on, I had to become very familiar with the print CSS styles for headers and footers. The goal is two fold: 1) to have a nice printable version and 2) to use a chrome-pdf tool to download as PDF.

Regardless of the two consuming sources, I just wanted to solve this all as one html/css file. So, it was necessary to explore all of the different options we have now, in 2025, on Chrome.

In this blog entry, see print (pdf) versions of the different header/footer functionality in CSS including built-in page margin and header/footer tools as well as fixed/forced hacks.

Oct 23, 2025 7 min read #css #html

Showing UTC in the Users Timezone Easily

In most of my applications, time is reflected in the UTC timezone. This is great for logic and math, but not so great when showing the date to the regular user.

Now, it’s pretty easy to show the UTC dates in the user’s timezone, without even asking them what it is.

Let’s see how to do this with a little bit of HTML and Javascript.

Jun 18, 2025 3 min read #html #javascript

Stop vs Code Wrapping HTML

I already have Prettier and ESLint set up and they handle all of my Javascript code perfectly. But what about when you’re working on just a plain HTML file in VSCode? How do you get it to stop randomly breaking your lines?

Nov 30, 2023 1 min read #html #ide-and-web-dev-tools

CSS Only Display Element After Click

Whenever I can use plain CSS instead of Javascript to solve a user interface or experience problem, a thousand angels rejoice. Well that, and usually the result is a lot less bytes sent for a faster page load. With this in mind, I had a problem a while ago that I solved using CSS only: showing a form only when a link was clicked to display it. Let’s see how.

Nov 9, 2023 2 min read #css #html

Old School Fancy Resume

Remember when the biggest way to show off your quality as an applicant was to have a fancy resume? You’d have a heavy paper weight, fancy fonts and in some cases embossing. I decided it might be fun to duplicate that as an HTML/CSS resume.

Apr 26, 2021 2 min read #css #html

Coming Up With Your First Portfolio Project (with coding walkthrough)

When talking to junior developers, I hear the same question over and over: “how can I demonstrate what I know, or show experience, if I haven’t had any gigs yet?” Old-timers tell you to build a portfolio, but how do you do that? Where do you get ideas? How do you choose a project that’s not overwhelming? Let me explain my rationale as well as demonstrate how I might make my first portfolio project.

Dec 23, 2020 15 min read #business #css #html #javascript

Don't P When You TD

Despite the “catchy” title, this is one of my pet-peeves: when developers put a p tag inside of a table like they would use a <tr><td> combo. This is often done when there is a variable amount of values - including zero - listed in a table.

Mar 4, 2019 1 min read #html

HTML5 Placeholder: Not Always the Best Choice

One of the applications my team develops is used by a group that we’ve determined to be very much beginners at computer usage and internet comprehension. We attempt to make the product as intuitive as possible - while staying away from the newest trends. I don’t believe our place is to challenge their current notion of what websites do at this time. We stay a bit behind the curve because they need to use this application to solve a task. The task is already hard enough, we shouldn’t be pushing them past their comfort zones.

Nov 2, 2014 2 min read #html #misc-web

jQuery code to manage check all / uncheck all checkboxes

At work the other day, our designer created an interface that had multiple checkboxes, and then of course a check-all checkbox. The thought was that if you check the check-all box, all items become checked. When our QA person started testing the interface, I noticed that a child item unchecked let the check all box remain checked. I explained to the programmer and QA person that this was not the desired outcome. As soon as one checkbox is unchecked, the checkall should now be unchecked. In addition, if you check all children by hand, the checkall should automatically check itself.

Oct 25, 2014 2 min read #html #jquery

XFN - XHTML Friends Network

While I continue to look at the semantic web, I can’t help but scratch my head and say “why” about some of these technologies. I feel like its still sadly lacking… with that, let me introduce…

Feb 5, 2010 3 min read #html

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 the right click or using java. It requires one single transparent gif. Let’s see how.

Dec 16, 2009 2 min read #css #html #misc-web

Meta Tag Generator

Meta Tag Generator uses javascript to generate the proper format for some common meta tags. This was originally just a proof of concept script that I decided to release.

Apr 24, 2008 1 min read #html