html - How to make a background image bootstrap responsive when not full screen -
i have design i'm converting bootstrap responsive have run couple of problems.
- how make non full width background image responsive
- how keep main form content correct distance away top of image no matter viewport size.
mock image
i'd grateful pointers
the following 1 simple option, according mockup-website.
- create parent div center aligned on page.
- apply background image div , set max-width 100%.
- create div sit on top of parent div (and relative parent div).
- give top margin required %.
- it recommended create these styles on media queries responsive display.
there lot of stackoverflow topics through above steps.
hth.
Comments
Post a Comment