There’s a font-size, some borders and text alignment going on here. We want to style the text display too don’t we? So the ID applied to the text division is styled. This division which was created earlier provides a 10 pixel margin space beneath the images. This pseudo class is used on the image to give a yellow background color upon hover (when the mouse is placed over the image). If you recall from the Box Model of CSS, the padding is the amount of space between the border and the content (which in this case is the images). To kick the styling off, a light grey background color is applied alongside the default webpage font (in this case Arial).Įach image is set to have a dashed light grey colored border and is also given a 10 pixel padding.
Here’s a quick low-down on what the style is doing. In this step, you’ll need to open that file and add the following.įont-family: Arial, Helvetica, sans-serif You should have already created the external style sheet from step 1. It’s time to style things up a bit with the lovely CSS. The next task is to create the division which will surround the default text.Īfter applying this, you should have the basic layout set. Step 3: Create a Division for the Text Display That’s just there so that we can apply a CSS style to things a little later on.
#HOW DO I MAKE TEXT BIGGER AND THICKER IN CSS CODE#
You’ll notice that the code above went a step further by surrounding the images with an HTML div (division) tag which was given an ID. If you need to quickly refresh your background knowledge on HTML images by all means check out this tutorial. Place these images between the opening and closing HTML body tags as shown in the code below. This tutorial includes 4 different small icon images each with the dimension 48×48 (width x height) which you can find in the images folder. Step 2: Include the Images you want to use While doing that, create and provide a link to the external style sheet (style.css).