Favorites

CSS

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

HTML Bold Strong

Bold Text in CSS and HTML

When it comes to styling text on the web, bold typefaces are a powerful tool for emphasizing important information and creating visual hierarchy. Whether you're designing a website, crafting a blog post, or coding an email template, understanding how to apply bold text using CSS and HTML can make your content stand out and grab…

Google Fonts Self Host

Self Hosting Google Fonts - Pros and Cons

When it comes to web design and development, typography plays a crucial role in shaping the user experience and overall aesthetics of a website. Google Fonts has become an immensely popular resource for designers and developers, offering a vast library of free, open-source fonts that can be easily integrated into websites. However, the option to…

text-overflow line-clamp
CSS

Using text-overflow and line-clamp Properties

The CSS properties text-overflow and line-clamp allow you to shorten text whenever a container width or height is reached, regardless of the number of characters. To create well-formed layouts, it may be necessary to truncate text to a certain maximum length, regardless of their character count. Especially when we develop layouts for websites that are…

A Guide to CSS Transitions
CSS

A Guide to CSS Transitions

CSS transitions allow you to animate the original value of a CSS property to a new value over time, controlling the rate at which property values ​​change. Most properties change their values ​​in 16 milliseconds, so the recommended standard transition time is 200ms. The change of properties occurs when a certain event occurs, which is…

Box-Shadow CSS
CSS

Box Shadow Generator - Updated

We have just finished updating our popular CSS box shadow generator. You can now add and view multiple shadows to an element and as you could always do previously, change the blur, spread, color (now with opacity) and x and y offsets. Check out the new CSS box shadow generator now by clicking on the…

CSS Gradients
CSS

CSS Gradients - Radial Gradients

Radial gradients are drawn differently from linear gradients. If the linear colors are located perpendicular to the line that sets the direction, then the radial colors diverge from the specified center, and the gradient can take the form of a circle or ellipse. For the simplest radial gradient it is enough to set only the…

CSS Gradients
CSS

CSS Gradients - Linear Gradients

CSS gradients allow you to make a background of two or more colors that smoothly transition from one to the other. They have been with us for quite a long time, and they have very good browser support. Most modern browsers understand them without prefixes, for IE9 and older there is a Gradient Filter, and…

CSS Image Filters
CSS

CSS Image Filters

We have added a new page to this website to show you some different filters that you can apply to images on your website. These filters are very easy to use and generally you only need to add one or two lines of css code to achieve the desired effects. Head over to the page…

Numbered Lists with CSS
CSS

Numbered Lists with CSS

Today we are going to look at creating a numbered list with css. In this example we will be using the counter-reset and counter-increment properties to number our list. You might be thinking, why don't we just use the ordered list tag (<ol>), yes we could use this tag but you can't really style the…

Lengths in CSS
CSS

Lengths in CSS

We've just added a new page to our site, check it out here: http://www.cssportal.com/css-lengths, this page will show you various lengths that can be used in CSS. You'll also be able to see visually the differences when you alter the size of the lengths. Currently we have included the following lengths: Absolute Lengths px mm…

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.