How to draw a line with button the center of the line

Tags: html,css

Problem :

I want to draw a <hr> line in CSS. And there is a button at the center of the line which cuts that line in the middle. So how can I achieve this effect in css?

Solution :

Give margin-bottom in minus to your button. Write like this:


    CSS Howto..

    Bootstrap table. How to remove all borders from table?

    How to use CSS function instead of LESS function?

    How to select a div with specific css property

    How to do margin: 0 auto 0 auto minus a few pixels with CSS?

    Is there a CSS style guide for large existing projects. Or how could I optimize the css for a large project [closed]

    how to set anchor tag text width using css?

    How to give Internet Explorer different CSS lines?

    Show and hide table column using jQuery

    CSS: how to style on character height versus line height

    How to cut down HTTP request on js/css in laravel

    Bootstrap tooltip showing behind modal window

    How to change the order of columns in CSS template to put important content first?

    How to use image tag in body of html instead of loading image from css?

    How can give third child div within one parent div

    How to create multicolored circle in css

    How to make semi-transparent select2?

    How is CSS applied by the browser, and are repaints affected by it?

    How can I slow down my CSS Animated Text transitions?

    How to click on a link from the header and then go back with HTML, Javascript and CSS? [closed]

    CSS - HTML - How to align images properly across the page

    How to animate the movement of inline-block items on page resize (ideally using css)?

    How to create a loading image sprite using background position

    How can clients without Ruby view web pages using SASS?

    Make converted joomla template show 2 colums in main content

    How not differ tableview focused rows from other rows?

    How to access smarty variable in css URL attribute?

    How can I align my paragraphs in CSS/bootstrap properly?

    How to showing expanding text with javascript and css

    How to put background-color only a section of a select? CSS

    How do I make my CSS link up to files in different directories