Here’s your solution: JsFiddle
Basically, place your button into a div with centred text:
<div class="wrapper">
<button class="button">Button</button>
</div>
With the following styles:
.wrapper {
text-align: center;
}
.button {
position: absolute;
top: 50%;
}
There are many ways to skin a cat, and this is just one.
Related Contents:
- Vertically align text next to an image?
- How can I vertically center a div element for all browsers using CSS?
- Best way to center a on a page vertically and horizontally? [duplicate]
- Stacking Divs from Bottom to Top
- Center an tag inside a
- How can I horizontally center an element?
- How to align checkboxes and their labels consistently cross-browsers
- How do I vertically align text in a div?
- How to align content of a div to the bottom
- How can I vertically align elements in a div?
- How to center an element horizontally and vertically
- How to align 3 divs (left/center/right) inside another div?
- Responsive image align center bootstrap 3
- How to vertically center a container in Bootstrap?
- How to center an iframe horizontally?
- How to set the margin or padding as percentage of height of parent container?
- How to center buttons in Twitter Bootstrap 3?
- How to wrap text of HTML button with fixed width?
- How to center div vertically inside of absolutely positioned parent div
- Embed image in a element
- Remove border from buttons
- CSS vertical alignment of inline/inline-block elements
- Align labels in form next to input
- How to position a table at the center of div horizontally & vertically
- Vertically align an image inside a div with responsive height
- How to vertical align an inline-block in a line of text?
- CSS vertical alignment text inside li
- CSS way to horizontally align table
- Why doesn’t vertical-align work properly when using float in CSS?
- How to align footer (div) to the bottom of the page? [duplicate]
- CSS – Make divs align horizontally
- Center form submit buttons HTML / CSS
- Font Rendering / Line-Height Issue on Mac/PC (outside of element)
- Why is width: 100% not working on div {display: table-cell}?
- what’s the easiest way to put space between 2 side-by-side buttons in asp.net
- CSS align images and text on same line
- How to right-align form input boxes?
- Is there a way to set the text alignment of entire column in a table?
- Make radio button bigger?
- right align an image using CSS HTML
- Vertical align all(!) elements in TD?
- HTML image bottom alignment inside DIV container
- CSS metaphysics: WHY is page vertical alignment so difficult?
- How to add fixed button to the bottom right of page
- HTML-CSS Center Text horizontally and vertically in a link
- text-align: right; not working for
- How to set text color in submit button?
- How to vertically center the contents of a flexbox item
- 2 divs aligned side by side, how to make right div fill width 100%?
- CSS: Vertically align div when no fixed size of the div is known