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?
>  
>

No.  CSS is for styling content, so it doesn't affect the HTML source of 
the page.  It can't rearrange the divs in your source.  It could, to a 
certain degree, rearrange divs visually, but I don't think this would 
work for your situation because:
1. they would still be out of order in the source, so people without CSS 
would not get the correct order.
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.

This sounds like the job for scripting of some sort.

Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
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/

Reply via email to