Cannot change div width

Cannot change div width
0

#1

Hi, when i try to change the width of my “full-img” div, it doesnt. what gives?


#2

Couple of thing I’ve noticed :
You’ve given your body a fixed width.
You actually CAN change the width of your div , but I presume you wanted to make the image bigger as well?
Try adding:

//targeting the image itself in the div
.full-img img{
width:800px;
}

Hopefully this was helpful!


#3

Try adding a border to your div and then change the width. You will see that the div actually changes size. The image inside it does not resize with the div. To do that add width: 100% to .displayed-img. Note that you currently miss the dot in front of displayed-img.