Hi,
I'm creating a form using form_group. I want the form to look like the following -
dropdown1 dropdown2 dropdown3
The default behavior is giving me:
dropdown1 dropdown2 dropdown3
This is an XHTMLTemplate (bluemarine). How do I go about getting what I want? I don't see the code in xtemplate.xtmpl. I've poked through the documentation - it doesn't look like I can do it with theme_x. Any hints - can someone point me to an implementation that deals with this?
Thanks,
Dan
Dan Robinson wrote:
I'm creating a form using form_group. I want the form to look like the following -
dropdown1 dropdown2 dropdown3
The default behavior is giving me:
dropdown1 dropdown2 dropdown3
This is an XHTMLTemplate (bluemarine). How do I go about getting what I want? I don't see the code in xtemplate.xtmpl. I've poked through the documentation - it doesn't look like I can do it with theme_x. Any hints - can someone point me to an implementation that deals with this?
You need to tweak the CSS stylesheet(s). I suggest using a bookmarklet that will tell you the ancestors of an HTML item to find what you need to change. It will probably be wrapped in the "form-item" div among other things. You'll probably need to use a "display: inline" and maybe some widths and possibly a "float: left" to get what you want.
-- Chris Johnson
great - that worked. Now to get the labels down to the same line as the drop downs do I look at the css as Chris implied? The thing that I don't get is that -
<label for="edit-Group">in:</label><br />
so the <br /> is there - who is sticking that in?
Thanks for your help.
Dan
Dan Robinson wrote:
Hi,
I'm creating a form using form_group. I want the form to look like the following -
Wrap the fieldset contents in <div class="container-inline"></div>.
Steven Wittens
Dan Robinson wrote:
great - that worked. Now to get the labels down to the same line as the drop downs do I look at the css as Chris implied? The thing that I don't get is that -
<label for="edit-Group">in:</label><br />
so the <br /> is there - who is sticking that in?
That would be Drupal's default theme functions that is putting the <br /> element in that location.
One way to get rid of its action is to add something like this in CSS:
.form-item br { display: none; }
-- Chris Johnson
Op dinsdag 8 maart 2005 02:43, schreef Chris Johnson:
Dan Robinson wrote:
great - that worked. Now to get the labels down to the same line as the drop downs do I look at the css as Chris implied? The thing that I don't get is that -
<label for="edit-Group">in:</label><br />
so the <br /> is there - who is sticking that in?
Most probably a theme function (theme_form_element() )
read about that here http://drupaldocs.org/api
Regards, Bèr