Position div horizontally center but slightly to the left

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

Please see the image below.

Image

I want to center the div horizontally but have it slightly to the left of the page. The problem is that I want the div to center horizontally and vertically when the window is minimized to the phone size.

<style>

.container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 50%;
}

.profile {
width: 480px;
height: 380px;
background-color: lightblue;
}

</style>
<div class=”container”>

<div class=”profile”>

<p class=”about”>Lorem ipsum dolor sit, amet consectetur adipisicing elit. At corporis voluptatibus officiis? Minus architecto voluptatum ea enim eos exercitationem perferendis quae necessitatibus rerum mollitia, atque doloremque obcaecati unde officia soluta?</p>

</div>

</div>

‫أضف إجابة

تصفح
تصفح

مجهول يجيب