Я пытаюсь создать карту с css
. У меня есть один вопрос о положении страницы вниз.
Я создал эту страницу DEMO из codepen.io. Итак, если вы находитесь в нижней части демонстрационной страницы, вы видите пузырь div
.
Что мне делать, чтобы показать .bubble
внизу треугольника вниз по странице?
.container{
width:400px;
height:400px;
margin:0px auto;
margin-top:50px;
}
.bubble
{
position: absolute;
width: 250px;
height: 120px;
padding: 0px;
background: #000;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
display:none;
}
.bubble:after
{
content: '';
position: absolute;
border-style: solid;
border-width: 0 15px 15px;
border-color: #000 transparent;
display: block;
width: 0;
z-index: 1;
top: -15px;
left: 194px;
}
.hub:hover .bubble{
display:block;
}
.wrp{
width:300px;
height:68px;
}