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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Need .css help w/profiles on Drupal user registration
Pages: [1]

Author Topic: Need .css help w/profiles on Drupal user registration  (Read 794 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Need .css help w/profiles on Drupal user registration
November 02, 2010, 08:06:57 pm
My site collects some extra information on the Drupal registration page via several CiviCRM (3.2.4) profiles. I'm having some trouble with spacing of the help text below these custom data fields. It's (confusingly) evenly spaced between two fields, so it's hard to tell whether it applies to the one above or the one below. Can someone suggest a .css edit that will space it closer to the field above without my having to hard code helprow-custom_1-section, helprow-custom_2-section, and all other instances? This is a bit above my .css league. Many thanks!
« Last Edit: November 02, 2010, 08:27:15 pm by m.e. »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Need .css help w/profiles on Drupal user registration
November 03, 2010, 12:44:09 pm
Might work just to add an <hr> tag at the end of each help text "chunk" (I think HTML tags are allowed / work in the help text).
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Need .css help w/profiles on Drupal user registration
November 03, 2010, 01:24:01 pm
Yes Dave - they do work in those cases - we often use them for the opposite purposes - to use the 'help' of the previous field to work as the 'section header' for the next bunch of fields. A bit clumsy but provides a code-free way of dealing with such situations. (And welcome back to the forum - am sure you were missing it most days ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: Need .css help w/profiles on Drupal user registration
November 03, 2010, 05:40:37 pm
Thanks - good workaround. The HR works perfectly; I added some styling to make it more of a wide border in a color that goes with my theme, and was also able to add a bottom margin to scoot the next form field down. It looks pretty sharp!

Code: [Select]
<hr style="height: 20px; background-color:  #c5dcff; margin: 5px 0 25px 0;">

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Need .css help w/profiles on Drupal user registration

This forum was archived on 2017-11-26.