Thursday, July 28, 2011

Lots of DIVs

Hi all,

I've been wondering about this for a long time. I thought it was about
time I asked.

When I create even the simplest widget, I see

<div style="position: absolute; z-index: -32767; top: -20cm; width:
10cm; height: 10cm;">&nbsp;</div>
<div style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;">
<div style="position: absolute; z-index: -32767; top: -20ex; width:
10em; height: 10ex;">&nbsp;</div>
<div style="position: absolute; overflow: hidden; left: 0px; top: 0px;
right: 0px; bottom: 0px;">
<div style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;">
<div style="position: absolute; z-index: -32767; top: -20ex; width:
10em; height: 10ex;">&nbsp;</div>
<div style="position: absolute; overflow: hidden; left: 0px; top: 0px;
right: 0px; bottom: 0px;">
<div class="GMYET22DPF" style="position: absolute; left: 0px; top:
0px; right: 0px; bottom: 0px;">
</div>
</div>
</div>
</div>

at runtime. The middle DIV with class GMYET22DPF is (finally) my stuff. :-)

Do I really need all those extra DIVs? And all that position absolute
styling stuff? Is there a way to get rid of it or is it actually
adding value somehow?

(I am not a CSS/HTML person so to me it just seems unnecessary.)

Cheers,
Hilco

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate