首页 > 解决方案 > I am having a problem with the floating property.Both elements are floated right

问题描述

I am want to get the book repair button on left of the Svg button.
button{ float:right; background-color: #155FCC; padding: 10px 25px; color:white; border-radius:20px; box-shadow: none; border: none; } svg{ float: right; clear:right; height:55px; width:55px; }

This is the type of output that i am looking for.

标签: csscss-float

解决方案


Reverse the order of the elements in the HTML.

svg{ float: right; clear:right; height:55px; width:55px; }
button{ float:right; background-color: #155FCC; padding: 10px 25px; color:white; border-radius:20px; box-shadow: none; border: none; }

推荐阅读