U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ Developers corner » Trouble with SizePos...
Re: Trouble with SizePos... [message #34522 is a reply to message #34520] Sat, 26 November 2011 19:46 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Well, does not work with Firefox, but I have found alternate solution + I have identified one problem that confused me before:

In firefox, 'em' units for elements are in font size of that element. And input element has different than 'default' font... Means placing labels was using different units...

Anyway, this appears to work, at least for horizontal size:

<div style="width:30em;position:absolute;right:20em;top:30em">30</div>

<div style="height:100%;margin-left:4em;margin-right:4em;margin-top:4em;margin-bottom:4em">
<input type="text" style="width:100%;height:100%" name="firstname" />
</div>

<div style="width:30em;position:absolute;right:15em;top:30em">
<input type="button" />
</div>


(note that we have to put positions to 'div' to have consistent units)
 
Read Message
Read Message
Read Message
Previous Topic: Little experiment compiling to function pointer calls...
Next Topic: Development ToDo finalized
Goto Forum:
  


Current Time: Tue Jun 23 21:00:44 GMT+2 2026

Total time taken to generate the page: 0.00625 seconds