Home › Forums › CSS › Help with divs? › Reply To: Help with divs?
August 29, 2014 at 8:20 pm
#181122
Participant
Hi, Erika,
position:absolute has nothing to do with getting the width to 100% of the browser, unless you are trying to make it go outside of margins that the rest of the page is obeying (is that what you are doing?) Please try using position:relative along with top:0 and left:0. That will allow you to do absolute positioning on the .projectlabel.
To set the width of the image, use the following:
.projectheader img {
width:100%;
height:auto;
}
I’ll create a pen if I can find time, but if you make these two simple changes, you should be moving towards a workable page.
You’ll find a chunk of blank space below the image. We can deal with that next, and start fixing .projectlabel.
Good luck!