HTML CSS examples for CSS Widget:Banner
Create product banner
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .banner {<!--from w w w .jav a 2 s. c om--> font-family:Arial, Helvetica, sans-serif; display:flex; max-width:901px; margin:0 auto; border:0px solid Chartreuse; border-width:5px 0; padding:0 16px; } .banner .content { padding-right:26px; } .banner .content h2 { color:yellow; } .banner .content h4 { color:blue; } .banner .content p { color:pink; } .banner .content button { padding:11px 16px; margin:6px 0 11px 0; background:OrangeRed; border:2px solid grey; border-radius:3px; font-weight:bold; color:BlueViolet; cursor:pointer; } .banner .options { display:flex; flex-direction:column; justify-content:center; } .banner .options .buttons { display:flex; justify-content:space-between; } .banner .options .buttons button { flex:2; text-transform:uppercase; padding:11px; background:Chartreuse; border:2px solid yellow; border-radius:2px; font-weight:bold; color:blue; max-width:calc(51% - 4px); cursor:pointer; } </style> </head> <body> <div class="banner"> <div class="content"> <h2>Lorem ipsum </h2> <h4>Lorem ipsum do</h4> <p>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 at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imp</p> <button class="accordian">Lorem ipsum dol</button> </div> <div class="options"> <a class="colorbox init-colorbox-processed cboxElement" href="https://www.java2s.com/style/demo/Opera.png"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="alt text"> </a> <div class="buttons"> <button>Lorem ips</button> <button>Lorem ip</button> </div> </div> </div> </body> </html>