html - How to set the size of a background image according to the size of the containing div? -
i want have image fill div not overflow , 50% off screen in bootply. have displaying way want in bootply hoping there more dynamic way less code.
i figured out. needed
background-position: top right; background-size: contain;
instead of of other code had content div, , cropped image in photoshop wouldn't need change horizontal position.
Comments
Post a Comment