I wouldn't use CSS I would use ASP (or php in my case) if (condition is met) {
include (layout1.php) //external php file elseif (other condition is met){ include (layout2.php) } where layout 1 and 2 are external asp files or This may not be practical if you have loads of layouts.. $layout1= "some HTML"; $layout2 = "some different HTML" and just print the HTML (variables) in the order you want it. This sounds like an accident waiting to happen in CSS/Javascript with browser issues all over the place. R. ----- Original Message ----- From: "Martin Heiden" <[EMAIL PROTECTED]> To: <css-d@lists.css-discuss.org> Sent: Wednesday, November 23, 2005 2:44 PM Subject: Re: [css-d] Positioning dynamic form elements via css > Zoe, > > on Wednesday, November 23, 2005 at 13:28 Zoe M. Gillenwater wrote: > >> John Mandia wrote: > >>>I want to build a form with a set amount of standard form controls (e.g. >>>textbox, label beside text box and validator [asp.net]) and some dynamic >>>ones (depending on the audience there may be different >>>textboxes/dropdowns >>>etc that get dynamically added). >>> >>>My question is this. Can I control the order of all the text boxes both >>>dynamic and preset via css i.e. e.g. wrap a div around a label, textbox >>>and >>>validator (similar to a table row) and then order these via css (e.g. a >>>css >>>reference gets added dynamically to match the current mode). >>> >>>That way you can one team that want dynamic textbox 3 to be inbetween >>>standard textbox one and two? > >> 2. you would have to rely on absolute positioning, making it very likely >> for your divs to start overlapping each other at larger text sizes. > > Only if you position the divs with px or other fixed values. He could > use em to avoid this issue. > > But you're right. He should prefer to use asp.net to order the > divs/inputs ('cause he seems to use it anyway) or, if it has to be > on the client, JavaScript. > > regards > > Martin > > > > > > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > > ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/