I have the following problem: 
the speech bubble should always point to the eye, regardless of the size of the browser window.
Jsfiddle here
So far I have the following code:
<div class="container1"> <div class="container2"> <button class="eye"></button> <div class="speech-bubble">View</div> </div> </div>
Where
.container1 { text-align: center; display: -webkit-box; display: -webkit-flex; width: 100%; } .container1 > .container2 { -webkit-box-flex: 1; -webkit-flex: 1;} .speech-bubble { position: absolute;}
But this does not work and gives the above output. What can I do to make it work? No jQuery solutions since I use Angular.
Change If you omit text-align: center , the code will achieve the desired effect. But not really: I want the buttons centered! And there is still the effect mentioned! How can I do it?
source share