3
Good morning! I am facing problems with positioning a CSS button.
I wanted to move each of these four buttons to a specific side, but I don’t know how.
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 60px;
margin: 40px 2px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
.button5 {
background-color: white;
color: black;
border: 2px solid #555555;
}
#historia{
}
#cartazes{
}
#fotos{
}
#videos{
}
.button5:hover {
background-color: #555555;
color: white;
}
</head>
<body>
<div id='cssmenu'>
<ul >
</head>
<body>
<button onclick="location.href='http://localhost/pap/historia.html'" type="button" class="button button5" id="historia">História</button>
<button class="button button5" id="cartazes">Cartazes</button>
<button class="button button5" id="fotos">Fotos</button>
<button class="button button5" id="videos">Vídeos</button>
And here’s the css code and the buttons hmtl.
I know I have to create an id for each button but I don’t know what to write on each one...
Which specific side do you change?
– Moises Moraes
How would you like to leave them?
– Rafael
Not to mention what you want to do will only generate kicks as answers.
– Sam