[SOLVED] Help Resizing a Background Image

I can’t seem to be able to size my second page (portfolio) to be the same size as my first and second page.

Other than that, I’m almost done!

What if you set the height of your div ( your img is the background, but it fills the div), not background-height? then you can fiddle with your background image.

That way you can give every page (div) a height of 100vh (this might be old and bad CSS. so look into it), then set background-img and make sure it is no-repeat.

I tried that and it has not worked. Neither did setting it to 100vh.

Because you didn’t close your img tag in your div. (I copy and pasted your code in a codepen to change it, and when I closed that tag it worked).

<img class="paganiniImage" src="http://s3-us-west-2.amazonaws.com/i.cdpn.io/907828.bBdgRp.small.c14ae3a8-de08-46f3-b934-1cc5472382c6.png">

see here EDIT: pen deleted since solution ok

1 Like

You absolutely right. What a silly mistake! Thanks for the help ma’am*.

girl, but you’re welcome! Now I’ll delete my pen.

By the way - can you edit the title of the thread and put [CLOSED]?

I went ahead and did that for you. Glad you guys got it working! :slight_smile:

1 Like

Cool ! I didn’t know you could do that.

Any user with regular trust level on the forums can rename/re-categorize posts.

1 Like