CSS
#header
{
width:90%;
}
#bakeryintro
{
width:40%;
}
.bakeryintro1
{
font-size:350%;
}
.bakeryintro2
{
font-size:200%;
}
Makup
<div id="header">
<div id="bakeryintro" class="editable draggable resizable text header">
<span class="bakeryintro1">The Bakery</span><br />
<span class="bakeryintro2">it`s all aboout the bread.</span>
</div>
</div>
When i will reduce the size of browser the size of #header and #bakeryinro will reduced but the font-size in #bakeryintro remains as it is, Pls tell me the problem?
are you talking about this prototype ?
if you are, this is css only prototype-proof:
Update:
In comments @dystroy asked about smoothness of my method and neccessity to write 1200 rules for provide to simulate javascript way, but I thought about the thousands of rules, and found another way is to write a small number of rules for each integer value of the font size. The method has a right to exist, because browsers poorly supporting non-integer values for the property
font-size, that’s why the 1200 rules for changing the font from 12 to 16 are not neccessable, because browser can realize only 5 (12, 13, 14, 15, 16):