Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help with divs? Reply To: Help with divs?

#181126
wahhabb
Participant

No, let’s try to fix it by option two, as you started to. Here’s what you need to do:

First, change the height on div.projectheader. As I mentioned, using percentages there refers to percentages of the WIDTH of the container, which is not useful.

For the moment, you can use a fixed height: say, 400px. then change the following:

div.projectcontent {
    margin-top: 200px;
}

That won’t work at all widths, but it gives us a starting point for conversation.

What are you trying to do with the height of the image? Do you want the entire image to show, filling the width of the screen, with content immediately following?

Meanwhile, I’ll work on my pen (and really, you should do that) so we have a simpler set of code that we both can work on.