Kaworu
Active Coder
Hi.
I am making a very simple website. It consists mostly of buttons which are links to other pages on the net. The buttons are top-down oriented. I want to code is CSS in a way that will automatically add space after each button. Sadly, I have completely no idea how to do it other than putting <br> after every button, which I wanna avoid.
Source code:
I am making a very simple website. It consists mostly of buttons which are links to other pages on the net. The buttons are top-down oriented. I want to code is CSS in a way that will automatically add space after each button. Sadly, I have completely no idea how to do it other than putting <br> after every button, which I wanna avoid.
Source code:
HTML:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="http://www.wp.pl"><button type="button" class="mybutton">Wp.pl</button></a>
<a href="http://www.onet.pl"><button type="button" class="mybutton">Onet.pl</button></a>
</body>
</html>
CSS:
.mybutton
{
width: 66%;
height: 50px;
border: 2px solid black;
position: relative;
}
.mybutton::after
{
/* HERE SHOULD BE SOME CODE, BUT I DON"T KNOW WHICH :( */
}