Есть ли способ очистить код, центрировать изображения и заставить вещи оставаться на месте ..
Вот взгляд, который я хочу ..
Основная внешняя коробка должна оставаться в центре страницы браузера ..
Кнопки «Пауза», «Воспроизведение» и «Стоп» смещаются влево от поля ..
Имейте мое изображение, чтобы установить в центре коробки ..
Кнопка «Добавить / скачать» для всплытия справа от поля.
Вот демонстрация того, что у меня до сих пор ..
Нажмите на ссылку CountryDum Productions
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="box-set2">
<audio id="player" src="audio/SUKA.mp3"></audio>
<div>
<button class="alignleft" onclick="document.getElementById('player').pause()">
<img src="images/Set1/pause.png" style="width:30px;height:30px;">
</button>
<button class="alignleft" onclick="document.getElementById('player').play()">
<img src="images/Set1/play.png" style="width:30px;height:30px;">
</button>
<button class="alignleft" id="player" onclick="player.src = ''; player.src = 'audio/SUKA.mp3';">
<img src="images/Set1/stop.png" style="width:30px;height:30px;">
</button>
<button class="alignright" onclick="window.location.href='download/TakeOne.rar'">
<img src="images/Set1/add.png" style="width:30px;height:30px;">
</button>
<div id="image">
<img src="images/kit.png" style="width:200px;height:200px;">
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
<style>
.box-set2 {
background: #eaeaed;
height: 200px;
width:40%;
top:100px;
margin:0px 0px 20px 40%;
padding:10px;
position: relative;
}
.alignleft {
background: #eaeaed;
float: left;
border:0px;
margin-left: 2px;
padding: 0;
outline: 0;
}
.alignright {
background: #eaeaed;
float: right;
border:0px;
margin: 0;
padding: 0;
}
#image {
border:0px;
margin:0;
padding: 0;
}
</style>
</body>
</html>