Category: JS CSS

How to change the size of (even part of) the content on a page

Add the class post-single-content-inner to the elements you want to zoom in/out. I did it by creating a 600px wrapper div and putting a div with the class post-single-content-inner inside it. Always set the width of the post-single-content-inner class to 100%: CSS.post-single-content-inner { width: 100% !important; } Create buttons for controlling the size on the …

Read More How to change the size of (even part of) the content on a page

How to Get Started with the Node.js npm Package Manager, Ruby gem, and the Grunt Task Runner

ℹ️ The image in this post was only available as a small thumbnail (the original could not be found anywhere), so it was upscaled in high quality (bicubic for screenshots with text, the Real-ESRGAN AI algorithm for photos). Its sharpness of detail may not exactly match the original. I will describe the procedure for Windows …

Read More How to Get Started with the Node.js npm Package Manager, Ruby gem, and the Grunt Task Runner

The Best and Simplest Popup Using Only CSS

CSS code: CSS.showonhover .hovertext { display: none;} .showonhover:hover .hovertext {display: inline;} .hovertext {position:absolute;z-index:1000;border:1px solid #ffd971;background-color:#fffdce;padding:11px;width:500px;left: 250px; font-size: 0.75em;} HTML code: XML<span class="showonhover"> <a href="#">…</a> <span class="hovertext">Text shown when hovering over the 3 dots</span> </span> You can try the whole thing… hereText shown when hovering over the 3 dots

Read More The Best and Simplest Popup Using Only CSS

The Best and Simplest Way to Build a Dynamically Adaptive Page Layout

On my website I have always avoided using display values that start with table. That was clearly a mistake. So today I bring you a guide on how to build columns so that when you add some content, for example with JavaScript, the #content element automatically grows in height without any height calculation in JavaScript …

Read More The Best and Simplest Way to Build a Dynamically Adaptive Page Layout