html - how to make this div resizable -


i have these 2 divs:

<div class="bubble">    blablablabla  <div class="arrow-left"></div> </div> 

.

.bubble{     background-color:#156ac6;      padding: 15px 10px 10px 10px;      color: white;     font-family:georgia; } .arrow-left {     position:relative;     top:42px;     right:0;     border-left: 42px solid transparent;     border-right: 0px solid transparent;     border-top: 42px solid #156ac6;     margin: 10px; } 

http://jsfiddle.net/jgwmm/

i want flexible, e.g. if resize browser, should shrink according width of browser. dont want media queries. css. how possible?

since haven't set widths on divs, should resize according browser default. however, can set widths in percent sure:

.bubble { width: 100%; } .arrow-left { width: 100%; } 

also don't need media queries media queries css.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -