C
C
Captain Cocoa2015-10-12 16:05:17
css
Captain Cocoa, 2015-10-12 16:05:17

How to position the image in the center in the block when loading the page?

In general, there is such a structure: jsfiddle.net/6rhao7pf/1
Just a div block and an image in it that scrolls horizontally and vertically.
By default, when the page loads, we see the upper left corner of the image.
How to make it so that when loading the page by default, we see the center of the picture.
For clarity, I attach the screen as it is and as needed.

3269f80c82804f8b80e3722a6a4c7211.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
holfza, 2015-10-12
@RadCor

For example, you can

J
jlekapb, 2015-10-13
@jlekapb

If you need to shift exactly the picture and not the position on the page, then background-size should help
https://css-tricks.com/almanac/properties/b/backgr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question