Peter Chan
asked on
Adjust the position
Hi,
I want to re-position the whole picture into center of the page, while still keeping everything like buttons, texts and other objects, still in the 'same' position on top of the picture file. What to adjust?
http://my-friend.co/Main/Default.aspx
I want to re-position the whole picture into center of the page, while still keeping everything like buttons, texts and other objects, still in the 'same' position on top of the picture file. What to adjust?
http://my-friend.co/Main/Default.aspx
ASKER
I put these
<div class="container" style="background:url('../pict/ID-10028343.jpg') no-repeat center top; ">
...
html, body, #main_form {
height: 100%;
}
.container {
background:url('../pict/ID-10028343.jpg') no-repeat center center;
height: 100%;
background-size: cover;
}
but the picture file is too small shown on the Web page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to cover the background then you need to do the following
Remove the width and height elements on this
Open in new window
Make itOpen in new window