Use
position:absolute;
right: 0;
No need for float:right
with absolute positioning
Also, make sure the parent element is set to position:relative;
More Related Contents:
- Could someone explain this CSS code?
- How to Create Grid/Tile View? [duplicate]
- What does the CSS rule “clear: both” do?
- Fixed position but relative to container
- Floating elements within a div, floats outside of div. Why?
- How to float 3 divs side by side using CSS?
- CSS Floating Divs At Variable Heights [duplicate]
- Position element fixed vertically, absolute horizontally
- How to create equal height columns in pure CSS [duplicate]
- Fixed element disappears in Chrome
- Aligning two divs side-by-side [duplicate]
- Make child visible outside an overflow:hidden parent
- margin-top not working with clear: both
- Make outer div be automatically the same height as its floating content
- Set position absolute and margin
- Why “overflow: hidden” clears a float?
- Split Div Into 2 Columns Using CSS
- How to get Floating DIVs inside fixed-width DIV to continue horizontally?
- CSS text ellipsis when using variable width divs
- Make floating child visible outside an overflow:hidden parent
- CSS container div not getting height
- Bootstrap change div order with pull-right, pull-left on 3 columns
- Hide scrollable content behind transparent fixed position divs when scrolling the page?
- Expanding the parent container with 100% height to account for floated content
- CSS to stop text wrapping under image
- Creating CSS3 Circles connected by lines
- How to horizontally center a floating element of a variable width?
- How to fix Internet explorer 7 bug when using percentage widths for layout?
- Stacking DIVs on top of each other?
- CSS: clean solution to the margin collapse issue when floating an element