USING A BUTTON TO NAVIGATE TO ANOTHER PLACE ON YOUR PAGE
This can be done by using your own CSS and HTML.
CSS FOR BUTTON (goes in TIGER >Advanced >Custom Code >CSS)
.custom-button {
border: none;
color: white;
padding: 10px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
}
/* CUSTOM BUTTON - adds choice of button colour*/
.cust-button-blue {background-color: #008CBA;} /* Blue */
.cust-button-green {background-color: #04AA6D;} /* Green */
/* CUSTOM BUTTON adds hover effect */
.custom-button:hover {
background-color: #666666;
color: white;
}
HTML for Button - added to your Page in jAlbum
<tr id="mac"><th colspan="4" style="text-align:left">
<button class="custom-button cust-button-blue" onclick="document.location='#sheila' ">
Click to go to location called Sheila ↓</button>
Clicking the button will take you to the location with the named id="sheila" for example, which is elsewhere on your website.
<tr id="sheila"><th colspan="4" style="text-align:left"> Some Text </tr>
The
id name has to be unique for that page of HTML and mustn't start with a number. It could be what you want to call it - id="top" or id="bottom" or even to another lpage on your website by adding a relative link.
The id can be attached to other elements too:
<p id="sheila"> Text about Sheila. </p>
Edited by: John-Simpson on 23 Aug 2024, 20:18 Substantially revised to show how a button is added.