How to add and change the styling of a horizontal rule HR in Dreamweaver.
Overview
Daniel Scott
Founder of Bring Your Own Laptop & Chief Instructor
instructorI 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.
Hi there, in this tutorial we're going to make this white line. It's got a horizontal rule, it's not hard, but there are some default styling that we want to go and change afterwards. So let's go do that now in Dreamweaver.
First of all, let's put in the Horizontal Rule. It's called HR tag, that's what they call it. So, I'm going to select my H1, which is my Heading1, because I want it just after this, and I'm going to go to 'Insert', 'HTML', and all the way down the bottom right, down the bottom is one called Horizontal Rule. Let's click on that. And, slide down, there he is there. Actually mine ended up right in the middle of my text, I'm going to undo. If that happens to you, click on it, click on the 'H1', make sure it's selected down here in your Tag Selector, and then go and click Horizontal Rule. I want to go after, please, and then, there he is there. There's my Horizontal Rule.
Now I'm going to preview this in a browser because by default the Horizontal Rule comes with some ugliness. So let's go check it in a browser. Now, it's a little hard to see, but it's actually what's called Inset, or Bevel and Emboss for the Photoshop people. If I zoom in loads you will start to see the styling on it. So down here, there he is there. You can see, it's kind of half white and half gray, and kind of got this little chiseled end here. I don't like it, you might be like, "You kind of see that." So you can save time, and just move on to the next tutorial. I don't like it, and I want to Style it. So, we're going to Style this HR, that's what's considered the Horizontal Rule. It's one of the few tags that doesn't have a beginning and an ending, like an H1 has an open and a close, an HR doesn't, like this BR tag, there are few that don't.
So, let's go and Style it, under CSS Designer 'Styles', 'Global', 'Selectors'. It's going to be called 'HR'. And because it's my pre-existing ones where we didn’t write it, like the H1, kind of something already pre-existing in HTML, we don't have to put the period in front. Something to do with Border. So Border, we're going to say, Style by default, it's inset, we're going to say, 'Solid', please. Color, I think it's like off-white by default, I'm going to make it white. And then I'm going to 'Save All', preview in my browser. And see what I like. Is it thin enough? You can play around with the width here. And put it down to 1 point or play with the pixels, I'm happy with the way it is.
All right, that is how to create a Line. It's a long tutorial for just a line but we want it to be a pretty line. And there we go. All right, on to the next tutorial.