Code for Horizontal Drop-down Menu Bar
One of the most popular website navigation elements used today is the horizontal drop-down menu bar. Using the code provided in this article, you'll be able to create a menu bar that meets your requirements. You'll be able to easily change the number of main menu and sub-menu items, and to style the menu as you desire. More ...
Add Background Color to a Heading
One way to highlight your webpage heading is to add a background color. This is very simple to do using the background-color property, but since a heading element, is a block element, you need to place a span within the heading tags and apply the background-color property to the span. More ...
How to Make Images Responsive
With today's widespread use of mobile devices, you might want to make images on your webpage adjust their size if your webpage is displayed on a small mobile smartphone screen. This article provides easy code examples to make images responsive. More ...
Setting a Larger First Letter
Long ago printing was much more stylish than it is today. The first letter of the first paragraph was much larger than the rest of the text. If you want to publish fictional content on the Web, you can give your story an extra touch of class. Use the information in this article to set a larger first letter for the first paragraph. More ...
Use @font-face Rule to Load External Fonts For Your Webpage
The CSS font-face rule allows web designers to load fonts from external sources, they no longer have to use one of the web-safe fonts. This article provides example code. More ...
Using the HSL Color Specification
The CSS hsla method gives artists familiar with the HSL (hue, saturation, lightness, alpha) color specification a way to design color with CSS. More ...
How to Use a Pull Quote
A pull quote is a sentence or two extracted from an article and placed in quotes. The extracted text is used as a "teaser" to entice the reader to continue reading. By using quotation mark and background images along with choice of fonts, font size and color, you have infinite opportunities for creativity in the design of pull quotes. More ...
How to Overlay Text on an Image
At some point you might find the need to put text over an image. The easiest way is to use a graphics editor, but with a graphics editor, if you don't like the exact location where you placed the text, you have to start all over. By doing it with style code, you can move the text around just by retyping a few digits. More ...
CSS to Use an Image as a Mask
Here is an easy way to create nice image text effects. A mask is an image with one color that is transparent, allowing an image behind it to show through, while a different color is used to block the parts of the image behind it. More ...
Using Google Fonts
In the past web designers were restricted to a small group of fonts referred to as web-safe fonts. But now, you can easily link to hundreds, if not a thousand beautiful fonts hosted by Google Fonts. More ...
Understanding CSS Positioning
One of the most important CSS webpage layout concepts to understand how to position webpage elements. In this article you'll learn how a web browser places elements on the webpage as it renders the display, and you'll learn about the five different methods of positioning: static, relative, absolute, fixed, and float. More ...
How to Style a Table
The early Web was used to communicate data between Universities and one of the most common structures used for that purpose is a table. Even today, many tables use the default styles, which makes them somewhat boring. In this article, I show you how to use CSS (cascading Style Sheets) to make your tables more interesting. More ...
