If you can't change your html, one way is to add display: inline
to your <p>
tags.
p {
display: inline;
}
<p><a href="new.php">Add a new record</a></p>
<p><a href="view.php">View, Edit or Delete Existing Records</a></p>
<p><a href="index.html">Go to Home Page</a></p>
Or if you will need to do things like specify height or width, display: inline-block
would be the answer.
p {
display: inline-block;
height: 50px;
background: grey;
}
<p><a href="new.php">Add a new record</a></p>
<p><a href="view.php">View, Edit or Delete Existing Records</a></p>
<p><a href="index.html">Go to Home Page</a></p>
However, if you want them inline I wouldn't put each link in it's own paragraph, as this is not good practice. Remove the <p>
tags, as below:
<a href="new.php">Add a new record</a>
<a href="view.php">View, Edit or Delete Existing Records</a>
<a href="index.html">Go to Home Page</a>
`? Is it a requirement? If you need to keep them, set their `display` to `inline`. If you don't need to keep them, then remove them and your problem is solved.
– Quentin Roy Jun 22 '16 at 06:55