How to set CSS minimum height

Questions

Course info

34 lessons / 3 hours

Overview

Dreamweaver (and web design in general) is such a hard program to teach yourself. We know, because as Dreamweaver trainers we have all taught ourselves. We wish we had a resource like this when we were learning.

Hand coding a website from scratch is now a thing of the past. Web designers use tools like Dreamweaver to a lot of the heavy lifting. We imagine this is your first website build and we're glad we're here to help make this process a little less troublesome. 

Who should use this?

Anyone that is brand new to Dreamweaver and anyone brand new to web design in general. If you're reasonably experienced in web design you might find this course a little slow going.

What do you need?

  • You'll need a laptop (Mac or PC)
  • Dreamweaver CC installed. Dreamweaver can be downloaded from theAdobe website here.

Can I use this tutorial with Adobe Dreamweaver CS4, CS5 or CS6?

No. Unfortunately there were some fundamental changes in the Dreamweaver CC update that makes CC and previous versions very different.

Remember you can download Dreamweaver CC free for 30 days. Don't worry - after your free trial has expired your files will still be updatable using any other web design program.

If you like the tutorials we'd love you to like, share and tweet it. We'd be very grateful.

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.

Downloads & Exercise files

Transcript

Hi, and welcome to this Dreamweaver tutorial. My name is Daniel Walter Scott,  and I'm a trainer here at Bring Your Own Laptop. In this next tutorial, we're gonna look at how  to set minimum heights for div tags. Um, in the the preceding tour tutorial,  we looked at removing the heights, which is great. It allows our content to expand and contract by. You can see here in the copy here, I can add a few returns  and the text expands for the Diviv tag.

Now you're going to have some divs  that will collapse too small. Okay, so if I get rid of this image  and I get rid of this text, which, what happens,  my footer comes in quite close, okay? And the website's looking strange when this footer comes up  so close to the edge here. So I'm gonna undo all that. So what I'd like to do is add  what's called a minimum height. So it means it could be any maximum height.

So it can grow, but it won't get  smaller than a certain size. So, um, let's look at doing that. So do it. We're gonna do it to this text diviv down the bottom here. So I've clicked on text div  and in my properties panel,  you can see here is one that says minimum height. So I'm gonna set the minimum height to 300 pixels,  and that just means that it won't  ever get smaller than that.

So watch this. I can make it smaller,  but you can see the div is forced to be that height, okay? It won't get any smaller. So you can do it for divs  that are appearing on pages  where you don't have much content for this text div here. And you want it to stay a certain height  and not get too small. All right?

That's how you set a minimum height on a div tag. I'll see in the next tutorial.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2025