[SOLVED] Help Resizing a Background Image

[SOLVED] Help Resizing a Background Image
0.0 0

#1

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!


#2

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.


#3

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


#4

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


#5

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


#6

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


#7

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


#8

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


#9

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


#10

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