HTML CSS examples for CSS Widget:Image Text
Placing image after text without adding space between lines
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .last {<!-- ww w . j a v a 2s. c om--> position:absolute; } </style> </head> <body> <img src="https://www.java2s.com/style/demo/Safari.png" alt="" width="56" height="44"> <p style="display:inline;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus </p> <img src="https://www.java2s.com/style/demo/Safari.png" class="last" alt="" width="56" height="44"> </body> </html>