i'm not sure if this is the right place to ask since it's rather specific. i've got some questions using EXT JS. i've been asking on there forum but i didn't get a reply there.seems like their forum is rather lazy compared to bytes :)
anyway, i'm trying to vertically position my text within my divs and doing this dynamically with a button. i figured out i needed to do this and i've done it using JS
align: top
Expand|Select|Wrap|Line Numbers
- <div style="position: absolute;">
- <p style="top: 0%; margin: 0px; position: absolute; height: 20px">
- Hi All!!!
- </p>
- </div>
Expand|Select|Wrap|Line Numbers
- <div style="position: absolute;">
- <p style="top: 50%; margin: 0px; margin-top:-10px; position: absolute; height: 20px">
- Hi All!!!
- </p>
- </div>
Expand|Select|Wrap|Line Numbers
- <div style="position: absolute;">
- <p style="top: 100%; margin: 0px; margin-top:-20px; position: absolute; height: 20px">
- Hi All!!!
- </p>
- </div>
so far, so good, and working fine.it did exacly what i wanted.
since that worked, i tried to implement Ext.resizable to make my div draggable and resizable. suddenly the vertical align didnt work anymore. i think the problem lies with the negative margin since the text is aligned to low. if i align it to 'bottom' it completely disappears.
does anyone know how i can fix this?