HTML CSS examples for CSS Widget:Image Text
Text box next to image and another image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .greybackground {<!-- w w w. j a va2s .co m--> background-color:Chartreuse; height:231px; width:1921px; margin-right:auto; margin-left:auto; margin-top:11px; } .greybackgroundcontent { height:251px; width:951px; margin-right:auto; margin-left:auto; } .greybackgroundimage { width:481px; height:100%; vertical-align:top; display:inline; } </style> </head> <body> <div class="greybackground"> <div class="greybackgroundcontent"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi u <div class="greybackgroundimage"> <img src="https://www.java2s.com/style/demo/Opera.png"> <img src="https://www.java2s.com/style/demo/Safari.png"> </div> </div> </div> </body> </html>