Search Results

Showing results for "css"

Latest Articles

Cover Image for Can I write a CSS selector selecting elements NOT having a certain class or attribute?
csshtml

Can I write a CSS selector selecting elements NOT having a certain class or attribute?

Published on September 2, 2023

# How to Select Elements in CSS NOT Having a Certain Class or Attribute 🚫 As a web developer, you might come across a situation where you need to select elements that *don't* have a certain class or attribute in CSS. This can be a bit tricky, but fear no

Cover Image for Can a CSS class inherit one or more other classes?
css

Can a CSS class inherit one or more other classes?

Published on September 2, 2023

# πŸŽ‰ How to Create a CSS Class that Inherits Other Classes πŸŽ‰ Are you tired of repeating the same CSS properties over and over again in multiple class definitions? Do you wish there was an easier way to apply multiple styles to an element without the hass

Cover Image for CSS force image resize and keep aspect ratio
css

CSS force image resize and keep aspect ratio

Published on September 2, 2023

# CSS Image Resize: Keeping the Aspect Ratio πŸ“ πŸ“Έ Working with images on your website can be quite a challenge, especially when it comes to maintaining their aspect ratios. But fear not! πŸ¦Έβ€β™€οΈ In this blog post, we will address the common issue of CSS im

Cover Image for How can I position my div at the bottom of its container?
csshtml

How can I position my div at the bottom of its container?

Published on September 2, 2023

# How to Position Your Div at the Bottom of Its Container πŸ“¦πŸ”½ If you've ever encountered the challenge of aligning a `div` element to the bottom of its container, you're not alone. Many developers struggle with this common issue. But fear not! πŸ¦Έβ€β™€οΈ In t

Cover Image for How to disable a link using only CSS
csshtml

How to disable a link using only CSS

Published on September 2, 2023

# 🚫 How to Disable a Link Using CSS 🚫 Are you tired of links that lead to nowhere? Do you want to disable a link so that users can't click on it? Well, you're in luck! In this guide, we'll show you how to disable a link using only CSS. Let's dive in! #

Cover Image for Changing the color of an hr element
csshtml

Changing the color of an hr element

Published on September 2, 2023

# Changing the Color of an `<hr>` Element 🎨 Are you looking to add some flair to your website by changing the color of the `<hr>` element? You're not alone! Many web developers want to customize this horizontal rule to fit their design aesthetic. However

Cover Image for Stretch and scale a CSS image in the background - with CSS only
css

Stretch and scale a CSS image in the background - with CSS only

Published on September 2, 2023

# Stretch and Scale a CSS Image in the Background: A CSS-Only Guide πŸŒ„πŸŽ¨ So, you want your background image to stretch and scale depending on the browser viewport size, huh? No worries! We've got you covered. πŸ™Œ ## The Background Image Dilemma πŸ€” We kno

Cover Image for Check if an element contains a class in JavaScript?
cssdomhtmljavascript

Check if an element contains a class in JavaScript?

Published on September 2, 2023

# Check if an Element Contains a Class in JavaScript: A Simple Guide πŸ•΅οΈβ€β™‚οΈ Are you tired of not being able to easily check if an element contains a certain class in JavaScript? πŸ€” Don't worry, we've got you covered! In this blog post, we'll walk you thro

Cover Image for Flexbox: center horizontally and vertically
csshtml

Flexbox: center horizontally and vertically

Published on September 2, 2023

# Flexbox: The Perfect Solution for Centering Divs Horizontally and Vertically 🎯 Have you ever struggled with centering divs horizontally and vertically using CSS? Look no further! Flexbox is the answer to your problem. In this blog post, we'll walk you

Blog | Matheus Mello