The Layout Property of UI Elements
The Layout Property of UI Elements
<!doctype html public "-//W3C//DTD HTML 4.01 T !"#itio"!l//$%"& <html& <he!d& <title&The L!yout ' ope ty () *+ $leme"t#</title& <met! "!me,"!utho " co"te"t,"Cl!udi! D!"-e #"& <met! "!me,"-e"e !to " co"te"t,"*lli Meybohm# HTML $D+T(."& <li"/ el,"#tyle#heet" h e),"c#i".c##" type,"te0t/c##"& </he!d& <body&
Introdu'tion
Whe" + 1!# #t! ti"- pl!yi"- ! ou"d 1ith Web Dy"p o 232' + 1o"de ed !bout the di))e e"t #etti"- o"e could do )o the l!yout p ope ty o) ui eleme"t#. + -oi"- to docume"t he e4 1h!t + )ou"d out !"d hope thi# 1ill be u#e)ul !l#o )o othe be-i""e #.
<!--; id L!yout--& ; id L!yout 2 - id l!yout ! !"-e# the co"t!i"e child e" i" ! t1o-dime"#io"!l - id 1ith ! de)i"ed colum" "umbe !"d !"y "umbe o) o1#. Li"e b e!/# c!" be de)i"ed. Li"e b e!/# ! e !utom!tic!lly i"#e ted 1he" ! *+ eleme"t i# too lo"to be di#pl!yed 1ithi" o"e o1.
<!--M!t i0 L!yout--& M!t i0 L!yout 2 m!t i0 l!yout ! !"-e# the co"t!i"e child e" i" ! t!bul! )o m!t4 #imil! to the - id l!yout. <ou c!" u#e the p ope tie# #t etchedHo i:o"t!lly !"d #t etched=e tic!lly to #peci)y 1hethe o "ot the *+ eleme"t# m!tch the
co"t!i"e #i:e. <ou c!""ot e0plicitly de)i"e the "umbe o) colum"#. +"#te!d you !##i-" M!t i0He!dD!t! to ! *+ eleme"t #o thi# *+ eleme"t i# 1 !pped.
<!--.o1 L!yout--& .o1 L!yout 2 o1 l!yout h!# ! #imil! beh!6io !# the m!t i0 l!yout. Ho1e6e 4 it #e9ue"ti!lly !##i-"# the *+ eleme"t# to e0!ctly o"e colum". +) you !##i-" .o1He!dD!t! to ! *+ eleme"t4 it i# e0!ctly thi# *+ eleme"t th!t i# 1 !pped.
</body& </html& Claudia Dangers is a Senior Development Consultant in SAP's Software Technology and Development department. 2dd to7 del.icio.u# ? Di-- ? .eddit Comment on this )e*log >ho1i"- me##!-e# 1 th ou-h @ o) @.
M!i" Topic#
(lde#t 8i #t
o))ici!lly ele!#edA @00B-0C-0D 0I70370B Thom!# Ju"- 3u#i"e## C! d G.eplyH Cu#tome .!mp-*p doe#"Kt be-i" u"til (ctobe 1ith ;2 t! -eted )o @00I !cco di"- to the >e 6ice M! /etpl!ce.