I would like to create a special CSS Shape for my header. The have to look like the first speech bubble from this website http://nicolasgallagher.com/pure-css-speech-bubbles/demo/ but, the arrow has to be a half circle and the half circle has to be always in the middle. This is for my header so even if the shape is 100% of the browser’s length the circle has to stay in the middle of the browser, also when I resize the browser window.
So my question is, is that possible and if so, how?
Use
border-radius: 50%for the semi-circle, then set thebottomto 1/2 of the circle’s height,left: 50%to center it mostly, and thenmargin-leftto negative 1/2 the width:Here’s the fiddle