I am pretty green to using CSS & HTML to customize sites within SharePoint. I created buttons & I am now trying to create a hyperlink for those buttons to navigate to another SharePoint site. I need to have the button when clicked to open a SharePoint site based on its URL. I have added this into a Content editor webpart that links to my SharePoint Code doc library.
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
.button {
display: inline-block;
border-radius: 4px;
background-color: #1E90FF;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 15px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:UTM span {
padding-right: 25px;
}
.button:UTM span:after {
opacity: 1;
right: 0;}
</style>
</head>
<body>
<button class="button" style="verticalalign:middle"><span>UTM </span></button>