Welcome Guest.

2Answers

Make an image absolutely centered on the page, no matter how the display device changes

Asked by: Timothy Anderson 204 views IT September 19, 2018

Make an image absolutely centered on the page, no matter how the display device changes

2 Answers

  1. +6Votes  

    Location stream, left: 50%; top: 50%; margin-left: -**px; margin-top: -**px; where ** is half the size of the image~~

    This answer comes from the “I want to program” software developer training platform free course.

    Jerry- September 20, 2018 |

  2. +1Votes  

    Setting, display is absolutely positioned.

    left:50%;top:50%;margin-left:-125px;margin-top:-90px;

    Sharon- September 21, 2018 |