Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Buttons stacked on top of each other?

Tags:

html

css

I have two buttons, that I would like to have one on top, and one on the button of each other, how ever when I went to see how they looked, both buttons were inside of each other, I Cant seem to find the issue, but here's my code.

CSS

body { font-size: 16px; width: 600px; margin: 25px auto;  }

  button {
  color:white;
  display: inline;
  margin: 30px;
  padding: 7px 35px;
  font: 300 150% langdon;
  background: transparent;
  border: 3px solid black;
  cursor: pointer;
} 

button:hover {
  background: #f7f7f7;
  border: 1px solid #8b8b8b;
}

button:active {
  background: #2e2e2e;
  border: 1px solid black;
  color: white;
  }
like image 304
user3430532 Avatar asked Apr 13 '14 22:04

user3430532


1 Answers

Currently the buttons show side by side: see this fiddle. If you want the next button on a new line, then use display:block see this fiddle.

like image 88
acarlon Avatar answered Sep 21 '22 13:09

acarlon