CSS z-order is odd

I’ve had some problems recently that I finally determined were just CSS acting the way it’s supposed to, which is not how my intuition told me it should. (Neither the first nor the last time for that, I’m sure.) They were all elements of the page failing to show despite being visible from the developer […]

Gaining CSS Intuition

Many if not most of the difficulties I run into with CSS (by which I do not mean to include times when I simply don’t know the desired command) come from not having the right intuition – where in the hierarchy does the style need to go, and why? What is this measurement relative to? […]

Aspect Ratio

Suppose you have a web page where a certain component needs to sit within a particular region of the background image, and you’d like the whole shebang to resize according to the browser window and maintain this alignment. That is, the position of the items relative to each other and their aspect ratios need to […]

Eliminating white space

For reasons that have now become obsolete, I had a background image carved into several pieces that needed reassembling. In fact, I had two versions, shown (not to scale) below. The first was easy to assemble: three divs corresponding to rows, the middle of which held three more divs. The divs of the middle row […]

Images, centering, and responsiveness

One of my first projects was to make a front page for a website, the sort of thing with an “Enter Site” link on it. It is mostly images, and I learned a lot about manipulating images in setting the page up and making it responsive. All of the following require setting a position attribute. […]