こちらで教えていただいて、左下に三角が表示された吹き出しは出来ましたが、
その三角の位置を、右上にしたいと思ったとき、
値を変えたりしても、出てこなくなってしまいました。
左下用のCSS
.my_triangle-isosceles {
position: relative;
padding: 0.1px 5px 0.1px 5px;
margin: 0.5em 0 0.5em;
color: #ffffff;
font-weight : bold;
background: #0000ff;
border-radius: 10px;
background: linear-gradient(top, #f9d835, #0000ff);
opacity: 0.5;
z-index: 10;
width: 98%;
}
/* creates triangle /
.my_triangle-isosceles:after {
content: "";
display: block; / reduce the damage in FF3.0 */
position: absolute;
bottom: -10px;
left: 25px;
width: 0;
border-width: 10px 10px 0;
border-style: solid;
border-color: #0000ff transparent;
}
右上にしたいCSS
.to_triangle-isosceles {
position: relative;
padding: 0.1px 5px 0.1px 5px;
margin: 0.5em 0 0.5em;
color: #ffffff;
font-weight : bold;
background: #006400;
border-radius: 10px;
background: linear-gradient(top, #f9d835, #006400);
opacity: 0.5;
z-index: 10;
width: 98%;
}
/* creates triangle /
.to_triangle-isosceles:after {
content: "";
display: block; / reduce the damage in FF3.0 */
position: absolute;
bottom: -10px;
left: 25px;
width: 0;
border-width: 10px 10px 0
border-style: solid;
border-color: #006400 transparent;
}
色々いじったのですが、うまくいかないため元に戻したつもりなのですが、三角すら表示されなくなりました???
こちらを右上の位置に変えたいのですが
どなたかアドバイスお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/02/10 08:57