Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how do i make a link of a button go on a different page

<button type="button" onclick="window.location.href='the link you want the button to take you to'">Click me</button>
Comment

Link design like a Button"

.button {
  font: bold 11px Arial;
  text-decoration: none;
  background-color: #EEEEEE;
  color: #333333;
  padding: 2px 6px 2px 6px;
  border-top: 1px solid #CCCCCC;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: 1px solid #CCCCCC;
}

<a href="#" class="button">Example</a>
Comment

How to create an HTML button that acts like a link

<!-- VIA HTML -->

<form action="https://google.com">
    <input type="submit" value="Go to Google" />
</form>

<!-- VIA CSS -->

<a href="https://google.com" class="button">Go to Google</a>
a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}


<!-- VIA JAVASCRIPT -->

<input type="button" onclick="location.href='https://google.com';" value="Go to Google" />
Comment

button looks like a link

button.link {
  display: inline-block;
  position: relative;
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 0;
  color: #00f;
  text-decoration: underline;
  font: inherit;
}
Comment

how to make a button like a link

button {
  background: none!important;
  border: none;
  padding: 0!important;
  /*optional*/
  font-family: arial, sans-serif;
  /*input has OS specific font-family*/
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}
Comment

PREVIOUS NEXT
Code Example
Css :: add border to png image using css 
Css :: how to make border hover effect in css 
Css :: input background color 
Css :: text-align css 
Css :: text align left css 
Css :: custom select dropdown css only codepen 
Css :: value error w2 should be positive but is 
Css :: subtract height css 
Css :: time an element to disappear css 
Css :: webpack animate.css 
Css :: css class and id selector 
Css :: line icon cdn 
Css :: css file path 
Css :: text sliding css 
Css :: dropdown size based on text 
Css :: keyframes 
Css :: how fixed image at top 
Css :: css crop image 
Css :: css span to right of div 
Css :: css stands for 
Css :: purge tailwind css 
Css :: css background image 
Css :: include css typo3 
Css :: img transparent 
Css :: woolentor product archive not centered 
Css :: position relative goes on top of position fixed 
Css :: hover 
Css :: move sidebar to top on mobile 
Css :: css color word multiple colors 
Css :: scale to smaller of vh and vw 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =