My submit buttons and select the button shift all words on this page on the left
As you can see in Figure 1, my "rights reserved" are centered. But in Figure 2, the words are shifted to the left.
Here is my HTML code for image 1:
<form action="Chapter 1.html" data-inline="true" style="float:right">
<input type="submit" value="Next >">
</form>
</style>
<div align="right">
<select id="change" onchange="location = this.options[this.selectedIndex].value;">
<option value="Introduction.html">1. Introduction</option>
<option value="Chapter 1.html">2. Chapter 1</option>
</select>
</div>
And my code for image 2:
<form action="Chapter 2.html" data-inline="true" style="float:right">
<input type="submit" value="Next >">
</form>
</style>
<select id="change" onchange="location = this.options[this.selectedIndex].value;" style="float:right">
<option value="Introduction.html">1. Introduction</option>
<option value="Chapter 1.html">2. Chapter 1</option>
</select>
<form action="Introduction.html" style="float:right">
<input type="submit" value="< Prev" id="previous">
</form>
</style>
My css code for both pictures:
input[type=submit] {
width: 5em; height: 2em;
border-radius: 5px;
webkit-border-radius: 5px;
background: webkit-linear-gradient(#fff, #ddd);
background: linear-gradient(#fff, #ddd);
}
input[type=submit]:hover {
background: #ddd;
}
#previous {
width: 5em; height 2em;
border-radius: 5px;
webkit-border-radius: 5px;
}
#change{
width: 9em; height: 2em;
border-radius: 5px;
webkit-border-radius: 5px;
}
As requested, here's my code reserved for rights, the html code is the first and the second is the jScript code and the third is the css code:
<footer id="foot01"></footer>
document.getElementById("foot01").innerHTML =
"<p><center>© "+ new Date().getFullYear() + " Richard. All rights reserved.</center></p>";
What am I doing wrong here?: /
+3
source to share