HTML CSS examples for CSS Widget:Image Text Position
position background-image between two texts
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .feature {<!-- w ww.j av a 2 s. c o m--> margin-top:100px; text-align:center; line-height:26px; } .feature-item { width:34.4%; float:left; } .feature-item h2:after { content:url('https://www.java2s.com/style/demo/Google-Chrome.png'); margin:25px 0 0 0; display:inline-block; } </style> </head> <body> <section class="feature"> <div class="container"> <article class="feature-item design"> <h2>Lorem ipsu</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae </p> <a href="">Lorem ips</a> </article> <article class="feature-item media"> <h2>Lorem ipsum </h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae </p> <a href="">Lorem ips</a> </article> <article class="feature-item apps"> <h2>Lorem ipsum</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae </p> <a href="">Lorem ips</a> </article> </div> </section> </body> </html>