Blog

Page 699 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Hide scroll bar, but while still being able to scroll
csshtml

Hide scroll bar, but while still being able to scroll

Published on September 2, 2023

# How to Hide the Scroll Bar and Still Scroll: A Guide for Web Developers šŸ˜ŽšŸ“œ Have you ever wanted to give your webpage a sleek and minimalistic look by hiding that pesky scroll bar, but still want your users to be able to scroll through the content easi

Cover Image for What does enctype="multipart/form-data" mean?
html

What does enctype="multipart/form-data" mean?

Published on September 2, 2023

## What Does `enctype='multipart/form-data'` Mean? šŸ“ So, you're here because you want to understand what the `enctype='multipart/form-data'` attribute means and when it should be used in an HTML form. Don't worry, we've got you covered! šŸ¤“ ### šŸ“œ Unders

Cover Image for Vanilla JavaScript equivalent of jQuery"s $.ready() - how to call a function when the page/DOM is ready for it
htmljavascriptjquery

Vanilla JavaScript equivalent of jQuery"s $.ready() - how to call a function when the page/DOM is ready for it

Published on September 2, 2023

# 🌟 The Vanilla JavaScript Equivalent of jQuery's $.ready() 🌟 So you want to call a function when the page or DOM is ready, huh? šŸ¤” Fear not, my fellow JavaScript enthusiast! I've got you covered with some easy-peasy solutions. Let's dig in! šŸ’Ŗ ## The

Cover Image for <button> vs. <input type="button" />. Which to use?
html

<button> vs. <input type="button" />. Which to use?

Published on September 2, 2023

# &lt;button&gt; vs. &lt;input type=&quot;button&quot; /&gt;. Which to use? When it comes to adding buttons to your web pages, you may have come across two options: &lt;button&gt; and &lt;input type="button" /&gt;. While they may seem similar, there are s

Cover Image for How to align checkboxes and their labels consistently cross-browsers
cross-browsercsshtml

How to align checkboxes and their labels consistently cross-browsers

Published on September 2, 2023

šŸ“ **Tech Blog: How to Align Checkboxes and Labels Consistently Cross-Browsers** šŸ¤” Do you struggle with aligning checkboxes and their labels consistently across different web browsers? You're not alone! This minor CSS issue can be frustrating, but worry

Cover Image for What is the difference between public, private, and protected inheritance in C++?
inheritance

What is the difference between public, private, and protected inheritance in C++?

Published on September 2, 2023

# Understanding Public, Private, and Protected Inheritance in C++ šŸ§‘ā€šŸ’» So, you're delving into the fascinating world of C++ inheritance and find yourself pondering the perplexing question: what in the world is the difference between `public`, `private`,

Cover Image for How can I set the default value for an HTML <select> element?
htmlhtml-select

How can I set the default value for an HTML <select> element?

Published on September 2, 2023

šŸ“ **Title**: Mastering the Default Value for HTML `<select>` Element šŸ‘‹ Hey there! Have you ever tried setting a default value for an HTML `<select>` element, only to find out it doesn't work as expected? Don't worry, you're not alone! In this post, we'l

Cover Image for RegEx match open tags except XHTML self-contained tags
htmlregex

RegEx match open tags except XHTML self-contained tags

Published on September 2, 2023

# 🧐 Understanding Regular Expressions to Match Open Tags (Except Self-Contained Tags) Have you ever found yourself in a situation where you needed to match opening tags in a text, but exclude self-contained tags? If you have, you're not alone! Regular ex

Cover Image for How do I make a placeholder for a "select" box?
csshtmlhtml-select

How do I make a placeholder for a "select" box?

Published on September 2, 2023

# šŸŽ‰ Creating Placeholders for 'select' boxes šŸŽ‰ So, you've mastered the art of placeholders for text inputs, but now you want to level up and add placeholders to your select boxes as well. Fear not, because I've got some easy solutions for you! Whether y

Cover Image for How to auto-resize an image while maintaining aspect ratio
csshtml

How to auto-resize an image while maintaining aspect ratio

Published on September 2, 2023

# How to Auto-Resize an Image While Maintaining Aspect Ratio šŸ“· Have you ever struggled to fit a large image into a smaller container without distorting its aspect ratio? šŸ¤” Don't worry, you're not alone! It's a common challenge many developers face. But