How to add a border & rounded corners to a box in Bootstrap

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 there, in this video we are going to look at adding borders. We're going to put a black border around it, but no border on this. We're going to add rounded corners on one side, square corners on the other. It's a border and rounded corner extravaganza. 

So we want to do a couple of things. I added a black border around the outside of this, just so that I could make this into the tutorial, because you need to work out the borders. I also added rounded corners that I didn't really want, just to add them to the tutorial. And we did it-- kind of cool thing about the borders, is that it's rounded on one side, but not on this kind of internal gaps. So let's work out how to do that now. 

Check out the documentation. So 'Documentation' it's called 'Borders'. And let's look at what we got. That looks good to me. So it's under 'Utilities', 'Borders', there's a bunch of stuff. You can say, Border, just the top, or put a Border around the whole thing. There's also Border colors. So I want to put a Border, and then a Border, let's go to Border dark. 

So both of these are going to go on my Text box. So let's go to VS Code, let's add it to this Class here, or this Div, got lots of things going on here now. Let's see if that works. Success, we've got a black one around the outside. Let's look at the rounded parts, should be in the same, same bit, if we scroll down, there we go, Border radius. 

You've got kind of two options. You've either got just a little bit of rounded, or a full circle. So you can decide whether you want Rounded, which is just our rounded corners, or you can do rounded circle. Actually that turns it into a full circle. There's another one called Pill, which kind of does the big ends, but leaves the long end. And Rounded zero, you’d only use if, say one of the components has a default round. You can turn it off by making it Rounded zero, and you've got two sizes for these rounded corners. They look exactly the same. Large and small, not very big differences. 

The other thing is that I want to do, remember, we did Rounded right, and left. So we'll start with the first box, would be Rounded left. So we're going to apply it to, now we applied the other one to the whole kind of column, for this second one here. It doesn't work in this case because we've got this image. We want to apply it around the Image, not the actual Class. I'll show what I mean. 

So we need to first of all tell it it's a border. Don't forget that part, and we need to say, Rounded right, uh, Rounded left. And that is only going to partially work, let's have a look. Because it puts around the edge of the column, that's not what I want. I want to put it around this image. So the exact same things can go on the image itself. So Image Source, we've got a class of Fluid. Put them both on there, and there we go. We've got Rounded left, but it's square on the right, it's used a white border, but let's make it the Border large as well, which doesn't make a significant change, but there it is. 

Lastly, it's given it a white line around the outside, it's not what I want. So let's get rid of that default. So here, let's have a look at Border color, not Border color, because I don't want to add a color, I want to try and, you can see there, we can add a Border of 0, nice. Good little examples up there. So let's say, Border, so on my image here, Border large, let's make it Border 0. There you go, it's got little rounded corners on the edges, and there is no Stroke around it. Let's do the Borders on the right here. 

So instead of left, we're going to do it to this column here. Lots of stuff going on, after Border dark, it's going to be Rounded left. It didn't work, who needs you, Rounded right. Oh, lovely rounded corners. The other thing I want to do is make sure that it is Border large. There you go. All right, that's it for our exciting Border video. We did some rounded corners, we added some lines around the outside. Let's get on to the next video.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2024