Explore your training options and get exclusive tuition discounts Get Started

X

Back

Learn CSS

CSS is a programming language used in a wide variety of industries and jobs. Here at Career Karma, we have compiled excellent resources and articles to help you learn CSS. You will learn about the best courses, books, and resources, as well as fundamental terminology, event lists, and exercises and quizzes. There are also in-depth guides to specific CSS protocols and practices.

ID and Class Attributes in HTML and Their CSS Selectors
When using CSS for styling web pages, you'll often want to target certain parts of your page. One of the ways you can select one or more element(s) is by either their ID and/or Class attributes. As you go through…
CSS Font-Style
With the font-style CSS property we can style our font with a set of characteristics in order to give emphasis to our text.  As always, checkout my Codepen so you can code-along with me. font-style Syntax and Options We have…
CSS Z-Index
When you are designing your layout with CSS, you'll often position elements either up/down or left/right. The z-index allows us to move elements on a 3rd dimension on the Z-axis, with a stacking effect (on top of each other). The…
CSS Font-Size: A Tutorial on Text Sizing in CSS
The CSS font-size property sets the font size of any text element on your page or website. The font-size property can be applied to any class, ID, or element that includes text content. The property accepts values in px, em,…
Use the Bootstrap Framework to Create Tabs
Tabs are a user interface (UI) element that allow us to see different panes of information without using up extra space. Just like tabs in a binder or book, they mark a placement on the page for more information and…
Using the Bootstrap Framework to Create a Modal
A modal is a window that is separate from the main window of a web page. It’s main purpose is to disable the main window from user interaction and to share information or confirm something with the user. Modal windows…
CSS Tricks – Centering an Image
Today we'll try to center a Susuwatari. These little creatures commonly referred as 'soots' like to move around a lot so we need to keep on still and center so we can take picture of one or more of them.…
Bootstrap Card Component
Bootstrap Cards The Bootstrap card is one of its most popular components, and with good reason. They serve as a very flexible media container, and have some nice preset styling and formatting. Card content can be anything from text, images,…
How to Make a Dropdown Menu with Bootstrap
No matter if you’re making a simple one page portfolio website, a monolithic app for a huge company, a blog, or a forum, chances are you’re going to need a dropdown menu. A dropdown menu is especially useful when you…
Learn How to Customize Checkboxes and Radio Buttons with Pure CSS
Sometimes when we create forms, we need to use checkbox and radio button inputs to collect user preferences, agreeing to terms, or demographic data. HTML input elements like checkboxes or radio buttons have a default appearance. If you would like…
What is the CSS :First-of-Type Pseudo-Class?
Sometimes when we create our CSS, we want to target a certain element. Let’s say if we had an HTML document full of <div> tags and <span> tags, but only wanted to target the first of each type to style…
CSS Background Position: What Is It and How Does It Work?
Web developers use the CSS background-position property when they need to adjust the starting position for the background image they are working with. In this article, we’ll take a look at the background-position property and how to adjust it to…
CSS Specificity
The CSS Specificity concept is not only a little bit of a tongue twister (try to say it three times fast!), but it can also be a bit of a mind bender too! It’s one of the more difficult concepts…
Creating Tabs in CSS Without Using JavaScript
CSS Tabs are really great at displaying associated information in one easy-to-navigate place. They essentially look like tabbed dividers that you would see in a recipe box or a binder. Here are some examples of websites using tabbed navigation:   Southwest…
When and How to Use the CSS Clearfix Hack
As coders and programmers in the generation of CSS Flexbox and CSS Grid, we don’t often consider CSS Clearfix. CSS Flexbox and Grid solve the position of elements a little better (and a little easier!) than using floats.  Nevertheless, we…
CSS !important Rule: When to Use it
The !important rule is used to override the styling of a webpage. In all honesty, there are more instances of why you shouldn’t use the !important rule vs why you should. Let’s discuss how it’s used and then why it…
CSS Padding vs Margin: How to Tell the Difference
When I first started learning how to write markup using HTML and CSS, it took some time to actually wrap my mind around the differences between margin and padding in the box model. In this article, I will share how…
How to Create a Basic CSS Overlay
An overlay is an effect used on a website to steer users in the right direction of the next action they must take. Correct usage has the ability to create a positive user experience, which will keep users on your…
Create Line Breaks Without Having to Use br in HTML
A line break can be added to HTML elements without having to utilize a break return <br> by using pseudo-elements. Pseudo-elements are used to style a specific part of an element. Here we will use ::after to style an HTML…
How to Use Text-Indent in CSS
The CSS indent property, known as the text-indent property, appears similar to a standard indent on the first line of every paragraph in an essay or paper you may have written in school; it indents the first line of every…
CSS Cropped Images
There are several ways to crop an image in CSS; however, the simplest and most effective of these are: Using object-fit: When using object-fit: cover, we can easily crop the image and still maintain the picture’s aspect ratio.  You can…
CSS Font-Kerning, Letter-Spacing and Word-Spacing Property
When learning CSS basics, we tend to focus on the box model, how to position components on the page, and the design system elements, like font-family and font sizes. If we dive even deeper into how the font looks on…
How to Use CSS to Hide Scrollbars
Scrollbars and User Experience Users are now accustomed to a certain experience when navigation websites. For example, you would expect the logo of a business in the upper left corner of a site to take you to the homepage. But…
CSS: Object Fit
The CSS property object-fit scales an element to within the width and height of the container it’s in. Background images are the most common element that you will come across as a developer that uses this property. There are five…
CSS Sticky Footer
Sticky footers are not to be confused with fixed footers – a sticky footer is a pattern where the footer always sticks either to the bottom of the screen (in cases where content does not fill up the page) or…
CSS Border Image
The border-image property in CSS is a bit tricky to wrap your mind around at first. In this article, we’ll discuss what the border-image property is, how to use it and its idiosyncrasies when it comes to using it in…
CSS Flexbox
The CSS Flexbox Model was created to improve the established CSS Box Model. The Flexbox Model still contains the major elements of the Box Model (margin, padding, border and content), but offers flexibility to best fill the space with the…
How to Link CSS to HTML to Make Markup More Readable
As coders who have just learned CSS, we first start to incorporate CSS to our web pages as inline-styling. We use the style attribute to inject the CSS directly on our HTML element:  <!DOCTYPE html> <html> <head> <title>Inline Style</title> </head>…
How to Insert Icons Using a CDN
Icons work well for illustrating actions a user can take in an application. There are several icon libraries readily available. Here are a few of the many:  Font Awesome - https://fontawesome.com/Flaticon - https://www.flaticon.com/Material Design Icons - https://material.io/resources/icons/ There are certainly…
CSS Padding: A Step-By-Step Guide
The CSS padding property creates a space between an element’s borders and content contained inside of that element. Padding has subproperties that allow for unique padding sizes on all sides and accepts inherit, length, and percentage as values. When you’re…
Start your Tech training
Find, compare, and enroll in the right training program. Save on Tuition.
View my matches