Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By mactable on
hi everybody,
how can i re-position 2 form elements, including textfield, title, and description, at same horizontal level.
p.s. form is made via formapi.
http://serv2.imagehigh.com/imgss/4772056_2007-01-09_153718.png
could anyone advise me how to re-position those form elements via css, css example will be more better. other method is welcome also.
thx a lot in advance!
Comments
Use prefix and suffix
You can use prefix and suffix within the form to include TR and TD tags.
HTH
Terry
Recent Drupal sites:-
www.allegiantair.com www.defaqto.com www.quarkexpeditions.com www.sportrelief.com www.chevronhackles.com
www.philipturnercrafts.co.uk www.intelflexplus.com www.aprilroseturner.com www.businessclubagent.ihg.com www.businessclub.ihg
Or.....
Or use:
'#prefix' => '<div class="container-inline">',
on the first form element and
'#suffix' => '</div>',
on the next element.
thx, but...
after tried out both @fidot and @AjK advices, it's works but a bit different from my expect.
since i am not very familiar about web design, so i would like to concentrate on php coding (formapi) by myself, and separate out visual design (themes, styles) to other web designer, i think that if i hard code html syntax "tr", "td" etc. on php code is not flexible enough and hard to maintain.
is there any pure css solution which could control form elements position?
please forgive me i do not have enough time to start learning css from ground up because i i have a urgent project need to start up right now, i need a help hand to break thought how to re-position form elements by css solution, could someone give me a simple css example which could define the style (position) of each form element, just a simple example is enough for me to discuss with my web designer.
million thx to everyone in advance.