How make a div tag transparent using HTML & CSS in VS Code

This lesson is exclusive to members

Course contents
SECTION: 4
Project 2: Bike Repair Website 6:12:48
SECTION: 6
Project 4: Bootstrap Yogurt Website 3:35:39

Questions

You need to be a member to view comments.

Join today. Cancel any time.

Sign Up

Course info

128 lessons / 17 hours 5 projects Certificate of achievement

Overview

Hi there, my name is Daniel Scott and together we’re going to learn how to build professional responsive websites. which look good on mobiles, tablets and desktop screens.

We will build 4 sites together...
  • a simple but elegant restaurant website.
  • a bike repair website. 
  • a responsive portfolio website.
  • a Bootstrap website.  

We cover everything you need to build your first website. From creating your first page through to uploading your website to the internet. We’ll use the world’s most popular (and free) web design tool called Visual Studio Code.

There are exercise files you can download and then work along with me. At the end of each video I have a downloadable version of where we are in the process so that you can compare your project with mine. This will enable you to see easily where you might have a problem.

We will delve into all the good stuff such as how to create your very own mobile burger menu from scratch learning some basic JavaScript and jQuery. 

 You will...
  • Learn how to work with responsive images and icons. and stunning full screen background images and probably one too many gradients. 
  • Learn how to create forms and to choose great fonts for your website. 
  • Learn how to work with Bootstrap 4 to easily add carousels, cards and complex looking menus. 
  • Setup a domain name with hosting so that your website is live on the internet for others to see.  

There are fun class projects for you to work on which will enable you to practice what you learn. By the end of this course you’ll have a great understanding of important web design topics like HTML5, CSS3, Flex box, Responsive design and Bootstrap.   

If that all sounds a little too fancy - don’t worry, this course is aimed at people new to web design and who have never coded before. We’ll start right at the beginning and work our way through step by step. 

Who am I? 

I’m Dan, and I’ve been building websites for about 15 years now. I am award winning instructor, and have won a MAX Master award for the last 2 years in a row at the prestigious Adobe Max conference.

Time to upgrade yourself?
Sign up for the course and let’s learn how to build responsive websites.

Course duration 16 hours 42 mins
Daniel Scott

Daniel Scott

Founder of Bring Your Own Laptop & Chief Instructor

instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Certificates

We’re awarding certificates for this course!

Check out the How to earn your certificate video for instructions on how to earn yours and click the available certificate levels below for more information.

Downloads & Exercise files

Download Exercise Files Download Completed Files

Transcript

Hi everybody, we're going to look at making things see-through. Normally referred to encode as alpha transparency, opaqueness. You get what I mean, we're going to go from this to this, where it's a little bit see-through or a lot see-through. I'm going to show you now how to do it in CSS. 

All right, to do the transparency we're going to do it to this Nav. Currently it is red, let's first change it to a color, we'll change it to black. So let's go to VS code. Let's find our Nav, there he is there, color, we're going to type in black. We didn't really need to do that first but make sure you save it all. Preview it, there it is, it's black. 

Now we want to make it a little bit transparent. I kind of mentioned this earlier on but if you highlight the word Black, or just click in here, it's a little bit hard to get this thing activated, I find. Man, here we go. Eventually you can get this thing going. Now it doesn't really matter, you can make a black in here, on the fly. What ends up happening is, if you pick a solid color you get three options. Red, green, and blue. 

At the moment, if they're all set to zero, that means you get black. You set them all to 255, you get them all, it creates a white color. There's nothing that I'm going to say, except that you can add a fourth dimension.

So over here if I drag the slider down to say-- I'm kind of looking up here. That one there, see, 000, and there's this new extra edit option. Think of them as percentages. If I go higher, like, whenever I select 1, it disappears, but if I come down, 0.975, is like 97%. That's 50% see-through. And getting right down here, it's like 10% opaque. 10% opaque's a better explanation, so 10% color in it, 50% of color, 90% means it's almost completely black again. Did I explain that okay? Drag it up, in time you'll work it out. 

All right. so I'm going to have mine about 30%-ish. You'll see, there it is there, so 0.3 means it is 33% black. They're not very, let's save it, let's test it. So look, there you go. Now if you're old-school Web Design, and you're using those Hexadecimal numbers, remember the hash, we did them earlier on, hash, hash, come on, Dan, hash, and I pick some random colors. You can't do alpha transparency with that, you have to use this thing called RGB-A, which is red, green, blue, and alpha, which is the see-through bit. 

All right, that is how to make something see-through. Now we've done it for the background color here in our Nav, but you could do it with Type. You can make any color that you've applied to things slightly opaque, or lots opaque. All right, that is it. I'll see you in the next video.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2024