简体   繁体   中英

Text box and button on a image in MVC using responsive web design

I have to create an MVC web for my company and I'm using a responsive web design framework (Zurb Foundation). It works amazing. But my problem is I have an image in one of the divs and I need to add a textbox and a button into the image (basically it's a login). I wanted a kind of control, with the background image and then the html textbox/button, but not sure if this is possible in MVC.

I tried with css (position:absolute) but when I re-size the page to let the html adapts to the different browser sizes, it doesn't work.

How can I solve this problem?

Thanks.

Aaaah, I got it now.

You need to understand position for this.

Some information

An absolute positioned element in a relative positioned element...

jsfiddle

Just play some with the margin, breaks etc...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM