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.

bootply

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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -