<div class="flex">
<div class="block-left"></div>
<div class="poster" style="background-image: url(LINK)"></div>
</div>
<div class="block-right"></div>
<div class="screenshots"><div
</div>
</div>
.block-left,
.block-right {
padding: 20px;
}
.block-right {
width: 100%;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
}
.screenshots {
display: flex;
flex-wrap: wrap;
}
.poster {
width: 128px; height: 178px;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
<img class="poster" src="картинка"/>
display: flex;
align-items: center;
justify-content: center;
головой и руками, у тебя голова то работает? я не знаю JS(открывай доки и учи? ну вот, нужно было и тебе, открывать доки и учить.), но я пытаюсь что-то сделать. ты не знал как сделать простую штуку с ТГ, но спросил про это -получил ответ. вот, поставь меня на своё место, а потом пиши фигню подобно той, что ты мне написал. а пока, ты противоречишь самому себе.
edit: function(id, news_id, type){
$.post(dle_root + 'engine/ajax/controller.php?mod=user_upload', {id:id, news_id:news_id, action:'edit', url:type}, function(response){
if( response == 'not' ) DLEalert('Файла нету', dle_info);
else if(response == 'not_owner' ) DLEalert('Файл вам не принадлежит', dle_info);
else{
$("#edit-file-alert").remove();
$('body').append("<div id='edit-file-alert' title='Редактировать' style='display:none'>"+response+"</div>");
var wh = $(window).height() * 0.6;
var ww = $(window).width() * 0.6;
if(ww > 1024) { ww=1024; }
$('#edit-file-alert').dialog({
modal: true,
autoOpen: true,
width: ww,
height: wh,
resizable: false,
dialogClass: "modalfixed",
close: function(event, ui) {
$('#modal-overlay').fadeOut('slow', function() {
$('#edit-file-alert').remove();
});
}
});
if ($(window).width() > 830 && $(window).height() > 530 ) {
$('.modalfixed.ui-dialog').css({position:"fixed"});
$( '#edit-file-alert').dialog( "option", "position", { my: "center", at: "center", of: window } );
}
$('.modalfixed.ui-dialog').css({position:"fixed"});
$('#edit-file-alert').dialog( "option", "position", { my: "center", at: "center", of: window } );
}
});
},
Ошибка загрузки, попробуйте позже.