[support] Fwd: Webform Customisation problem

sander-martijn lists at severeddreams.com
Tue Nov 6 14:27:45 UTC 2007


Hi kalyani,

In order to move beyond the basic suggestions I gave you will need to 
view the source to find the css names.  In your case if I view the 
source on one of my forms and search for the submit button I see that it 
  has an id of edit-submitbutton so the first thing I would try is

#edit-submitbutton{
   float:right;
}

if I want to make sure nothing appears on the same line as the button I 
would change it to:
#edit-submitbutton{
   float:right;
   clear:both;
}

if that doesn't work I would try using
#edit-submitbutton,
input[type=submit]{
   float:right;
   clear:both;
}

etc.  It's really a combination of viewing source and some trial/error 
work to see what calls the browser will respond to - this is because the 
html in drupal is so extremely nested that sometimes it can be difficult 
to figure out where to place the calls.  The reason for it makes sense - 
  everyone needs a different level of granularity and it would be more 
frustrating if drupal made assumptions of your requirements.

Unfortunately I'm not certain that the above code will work at all and 
can't really test it right now.  float and clear operate on block 
elements which the submit button is not.  However contrary to what I 
just said about the nesting, the submit button in my form is the only 
element that isn't wrapped in its own div.  If this code doesn't work 
then it's time to hack the module (or if you're lucky override a theming 
function) to wrap the submit button in a div with an id that you can 
then apply the above code suggestions to.  That should work but as 
always you should try to (in order) modify css, override functions, 
modify code (last resort).

.sander



Kalyani Waychal wrote:
> 
> 
> Hi sander-martijn,
> 
> Firstly thanks for your reply.
> I have another problem into submit button.
> I want to change loction of submit button from left to right.
> What css class I can use  for the submit button?
> Or any other option for this.
> 
> regards
> kalyani  Waychal
> 


More information about the support mailing list