The following will prevent your href from being ran
<a href="#" onclick="return false;">
If you are using jQuery, event.preventDefault()
can be used
Related Contents:
- Hide scroll bar, but while still being able to scroll
- CSS3 100vh not constant in mobile browser
- Should I use px or rem value units in my CSS? [closed]
- Why does this CSS margin-top style not work?
- How can I style even and odd elements?
- Place a button right aligned
- How to use CSS to surround a number with a circle?
- How to hide image broken Icon using only CSS/HTML?
- Change default text in input type=”file”?
- Best practices for styling HTML emails [closed]
- Use Fieldset Legend with bootstrap
- How can I do width = 100% – 100px in CSS?
- Grid of responsive squares
- 100% Min Height CSS layout
- What’s the difference if I put css file inside or ?
- 100% width Twitter Bootstrap 3 template
- Remove Select arrow on IE
- Indent starting from the second line of a paragraph with CSS
- How to get rid of extra space below svg in div element
- Table with fixed header and fixed column on pure css
- Highlight label if checkbox is checked
- CSS3 Flex: Pull child to the right
- How to put spacing between TBODY elements
- Table with 100% width with equal size columns
- Can I set an opacity only to the background image of a div?
- CSS :first-letter not working
- input / button elements not shrinking in a flex container
- How to test a website for Retina on Windows without an actual Retina display?
- Why is percentage height not working on my div? [duplicate]
- How do you align a div vertically without using float?
- CSS-Only Scrollable Table with fixed headers [duplicate]
- How to horizontally align ul to center of div?
- Styling the last td in a table with css
- Make link in table cell fill the entire row height
- How to horizontally center an unordered list of unknown width?
- Vertical dividers on horizontal UL menu
- How to add button inside an input [closed]
- Text in Border CSS HTML
- Stretching tag to fill entire
- Applying CSS styles to all elements inside a DIV
- Apply Border-Radius To Scrollbars with CSS
- What is the difference between inline-block and inline-table?
- Why doesn’t the element respect min-width?
- How to center an unordered list?
- Why doesn’t “margin: auto” center an element vertically?
- how can i extend a footer to bottom of page?
- Center Text Vertically Within
- css – min height by number of lines
- How to get a child element to show behind (lower z-index) than its parent? [duplicate]
- How to draw a trapezium/trapezoid with css3?