Hollywood Hollywood - 1 year ago 81
HTML Question

make two buttons go side by side in centre of html page

I'm trying to make the two buttons go side by side in the centre of the page and also make the buttons static as you resize the page.

<!doctype html>
<html lang="en">

width: 300px;
height: 40px;

width: 300px;
height: 40px;

<meta charset="utf-8">
<meta name="Homepage" content="Starting page for the survey website ">

<title> Survey HomePage</title>

<img src="kingstonunilogo.jpg" alt="uni logo" style="width:180px;height:160px">
<button type="button home-button" id="button1" >Home</button>
<button type="button contact-button" id="button2">Contact Us</button>

Answer Source

you can add this style to your buttons :

#button1 , #button2 {
/**other codes**/

this make your buttons align inline and 'side by side' :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download