Código HTML:
Ver original
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="style2.css"> </head> <body> <section id="contenedor"> <section id="principal"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> <img src="img/fideos.jpg"> </section> </section> </body> </html>
Código CSS:
Ver original
*{margin: 0; padding: 0; } body{ background: red; } section#contenedor{ background: #000; margin: 2em 5em; height: 30em; border-radius: 2em; padding: 1em; } section #principal{ overflow-y:visible; overflow-x:hidden ; } section #principal, aside{ background: #fff; width: 79%; margin: 0em 0em; text-align: center; border-radius: 2em; display: inline-block; height: 30em; } aside{ width: 20%; margin-top: 0px; } section #principal img{ background:pink; height: 200px; padding: 0.1em; margin-left: 0.5em; }