html - How to reduce the height of my div -
i embedded style tag css , have added max-height:90% suggested div element still overflowing other elements. doing wrong???
<head> <style> .atlas.region-map { border: 2px solid #716e64; max-width: 500px; overflow: hidden; margin: 0; float: left; } .atlas.map-content.info-col { margin-left: 549px; width: 335px; } .atlas.map-content.info-col p { color: #5c5642; margin-top: 15px; font-size: 12px; } .atlas_test { height: 300px; font-size: 14px; overflow-y: scroll; max-height: 90%; } </style> </head> <body> <div class="info-col"> <p>content go here!!!</p> </div> </body>
Comments
Post a Comment