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 Profiles (Moderator: Dave Greenberg) »
  • Problem in rendering a profile using yes/no radio buttons
Pages: [1]

Author Topic: Problem in rendering a profile using yes/no radio buttons  (Read 679 times)

jmg-arati

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.8
  • PHP version: 5.2.11
Problem in rendering a profile using yes/no radio buttons
September 07, 2011, 05:39:26 am
Hi,
I created a Drupal new user registration profile and noted some strange things :
1 - the rendering is always inline, even if i asked for a tabbed rendering in the custom set of data.
2 - the rendering is different in the preview and at run-time : the radio are not properly placed (yes and no on the same line), but always in different lines wich is quite strange...
Do somebody now a way to correct that ? Thanks, by advance...

jmg-arati

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.8
  • PHP version: 5.2.11
Re: Problem in rendering a profile using yes/no radio buttons
September 07, 2011, 11:17:25 pm
Just in case it's help others...

I found that this strange placement was a consequence of the use of the css class "form-item label" wich forced a block positionning for the label of check boxes and radio buttons. It was defined this way (in Drupal, not CiviCRM) :

.form-item label
{
  display: block;
  font-weight: bold;
}

I changed it this way (in a small customization of my Drupal Garland theme) :

.form-item label
{
    margin: 1em;
  display: inline;
  font-weight: bold;
}

And then, ererything went fine...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Problem in rendering a profile using yes/no radio buttons

This forum was archived on 2017-11-26.