offshorewindinwinter
asked on
CSS to align submit button next to select box
I wish to align the select button "Save" next to the Select box.
So I have tried adding
#block-commerce-multicurre ncy-curren cy-selecto r {
float: left;
display: inline;
}
to the Style.css sheet
I am relatively new to CSS and, this code generated by Drupal, is making it just that much more complicated. I am really not sure which id, class to pick, the CSS syntax and whether float: left; display:inline; will do the trick.
Thanks for your help, Neil
So I have tried adding
#block-commerce-multicurre
float: left;
display: inline;
}
to the Style.css sheet
I am relatively new to CSS and, this code generated by Drupal, is making it just that much more complicated. I am really not sure which id, class to pick, the CSS syntax and whether float: left; display:inline; will do the trick.
Thanks for your help, Neil
<div id="block-commerce-multicurrency-currency-selector" class="block block-commerce-multicurrency">
<div class="content">
<form id="commerce-multicurrency-selector-form" accept-charset="UTF-8" method="post" action="/frontpage">
<div>
<div class="form-item form-type-select form-item-selected-currency">
<input id="edit-save-selected-currency" class="form-submit" type="submit" value="Save" name="op">
<input type="hidden" value="form-oLhqr1BOS5im9WCxwZo9ORErvuzBzQGA3--srrEMjGE" name="form_build_id">
<input type="hidden" value="5Z-mHEK7cLPnqD-0sNJfG0m93z5jxZN72O2ZUOx2frw" name="form_token">
<input type="hidden" value="commerce_multicurrency_selector_form" name="form_id">
</div>
</form>
</div>
</div>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That one's easy, but then how would you submit the form? ;)
Try this:
#edit-save-selected-curren cy {
display: none;
}
or, if it works for your layout since it's better for SEO:
#edit-save-selected-curren cy {
margin-left: -9999px;
}
Cheers,
Mike (junipllc)
Try this:
#edit-save-selected-curren
display: none;
}
or, if it works for your layout since it's better for SEO:
#edit-save-selected-curren
margin-left: -9999px;
}
Cheers,
Mike (junipllc)
ASKER
I want to use the onchange event of the select box and javascript.
Please see the question I have pending at https://www.experts-exchange.com/questions/27316501/activate-event-directly-from-select-box-rather-than-having-a-separate-submit-button.html
Thank you, Neil
Please see the question I have pending at https://www.experts-exchange.com/questions/27316501/activate-event-directly-from-select-box-rather-than-having-a-separate-submit-button.html
Thank you, Neil
ASKER
Thanks for your help!
ASKER
and then another try
#block-commerce-multicurre
width:200px;
height:100px;
float:left;
display:inline;
}
nothing changed ?? What am I missing?
Actually I would like to get rid of the submit button all together and trigger the change in currency simply by changing the select box.
I have the question pending at https://www.experts-exchange.com/questions/27316501/activate-event-directly-from-select-box-rather-than-having-a-separate-submit-button.html
Thank you, Neil
Open in new window