JOEL LIPMAN Systems / Automation / AI

Knowledge base / Since 1999

Cascading Stylesheets Tutorials & Guides

Practical Cascading Stylesheets tutorials, troubleshooting notes and implementation guides from real projects.

Advanced search

12 entries / Cascading Stylesheets

Clear filters
CSS Center an iFrame Horizontally and Vertically
Cascading Stylesheets

CSS Center an iFrame Horizontally and Vertically

So this is a quick article to demo how to center an iframe horizontally and vertically in a screen/viewport in pure CSS (no JavaScript allowed). This CSS centers it by its center point rather than the top/bottom/left/right outline.

Read note 34,584 hits
CSS Printing - Page Break Inside with Headers and Footers
Cascading Stylesheets

CSS Printing - Page Break Inside with Headers and Footers

I saw a lot of articles that would cover this but I wanted an example which includes headers and footers and how to get an automatic page-break-inside to not overlap these. Fine on screen but this is obviously for when it comes to printing.

Read note 22,472 hits
Change div height to fit content
Cascading Stylesheets

Change div height to fit content

A quick article on how to get a div layer to increase height based on how a heading fits on a page. What? I have a heading like this: The code of this is: A long heading that wraps over several lines

Read note 13,997 hits
Three boxes, two roll over, one falls out
Cascading Stylesheets

Three boxes, two roll over, one falls out

So this is an article to note an oddity when I was working with a Yootheme template called "yoo_sync". Some clever scripts (both mootools and jquery) using the equalize method to make div layers the same height, and in this case, the same width. It isn't so much a miscalculation of 100% divided by 3 that leaves 1 pixel...

Read note 27,634 hits
Background Gradient Disappears on Long Pages
Cascading Stylesheets

Background Gradient Disappears on Long Pages

This is a quick article on how to resolve the following issue: Overall body background color is blue. Background color of my contents is white. When I visit a small page on the site, the contents background (white) shows. When I visit a very long page on the site, the contents background disappears and reveals the over...

Read note 27,472 hits
Vertically align an asterisk on a line
Cascading Stylesheets

Vertically align an asterisk on a line

So I have an unordered list of values (*, 1, 2, 3...) and for styling reasons I want the asterisk to be the same size as the numbers but not overlap any list item beneath it. By increasing the size of the asterisk, this often increases the line-height and causes the overall line height to change for other objects in th...

Read note 33,117 hits

Working principle

Our Purpose

This site exists as a practical knowledge base built from real-world experience across systems, platforms, and technologies since 1999. Much of the content documents solutions, edge cases, and working patterns that were learned through investigation where documentation was incomplete or absent, and is shared to reduce the same friction for others.

27 Years in IT
1021 CRM clients
810 Site articles
29.8m+ Reads / hits

Knowledge base

Search notes

Find matching words in article titles and content.