CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Tip: Moving "behalf of organization" checkbox to its own line
Pages: [1]

Author Topic: Tip: Moving "behalf of organization" checkbox to its own line  (Read 750 times)

greenyoga

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Tip: Moving "behalf of organization" checkbox to its own line
September 08, 2009, 11:46:14 am
Here is something I ran into.  If it is a problem with your templates, there is good news...

When enabling users to make a donation on behalf of an organization (which is a totally awesome feature of CiviCRM),  a checkbox will be placed on the front-end form.  In the code, this checkbox occupies the same cell (<td>) as the email address, which produces less than optimal User Interface design.  The check box is off to the right and text wraps with a line break.   (see screeshot on_behalf_before.jpghttp://begreendoyoga.com/images/on_behalf_before.jpg).

Fortunately, the elements are all given IDs so we can move them around in the CSS file.

For me this meant editing civicrm.css (on Joomla:  /administrator/components/com_civicrm/civicrm/css/civicrm.css) by adding the following at the bottom of the file...

/* move "behalf of org" check box to its own line */
#email-5 {
display: block;
}
#is_for_organization {
margin: 10px 0 0 -5px;
}

Here is the the screenshot after the code... http://begreendoyoga.com/images/on_behalf_after.jpg


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Tip: Moving "behalf of organization" checkbox to its own line

This forum was archived on 2017-11-26.