Im создаю страницу, у которой есть только верхний и нижний колонтитулы, а одна кнопка - посередине страницы. Ive пробовал использовать margin-top и, похоже, ничего не меняет. Также вы можете увидеть, что я пытаюсь загрузить изображение для фона, но всякий раз, когда я запускаю код, он не отображается. Я знаю его, вероятно, что-то не хватает, но любая помощь на этом тоже была бы фантастической.Как переместить jquery mobile button down page
Thank you.
HTML
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="End-term project submission for CS4056 by Kevin Murphy - 11139323">
<meta name="keywords" content="HTML,CSS, Mobile App Design">
<meta name="author" content="Kevin Murphy">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" href="http://demos.jquerymobile.com/1.4.5/theme-classic/theme-classic.css">
<link rel="stylesheet" href="styles.css">
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="background">
<div data-role="header" data-theme="a">
<h1>Formula 1 Constructor List</h1>
</div>
<div data-role="main" class="ui-content" id="index_button">
<a href="#" data-role="button" data-ajax="false">List of Teams</a>
</div>
<div data-role="footer" data-theme="a" data-position="fixed">
<h1>Kevin Murphy - 11139323</h1>
</div>
</div>
</body>
</html>
CSS
html,
body {
height: 100%;
width: 100%;
}
.ui-header .ui-title {
white-space: normal;
}
#background {
background-image: url(formula1.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: 100%;
}
#index_button {
margin-top: 50%;
}
Im извините, если я не отображается код правильно.