Placing the label above the text box

kdbates 02 Feb, 2011
Hello,

Here is an easy style question.
I want to place my labels above the input box.

I have placed this snippet in the CSS Styles of the Form Code tab
.form_element cf_textbox cf_label {
display:block;
}


My form still displays label and input box on one line.
What am I doing wrong?
GreyHead 03 Feb, 2011
Hi kdbates ,

I think that the labels are floated left, you may need to over-ride that too.

If you use the 'Transform Form' icon there is an alternative form 'theme' that has the labels above the boxes.

Bob
kdbates 03 Feb, 2011
Thank you Bob.

I am trying the theme1 'Transform Form' option. There was also an option for .listing which the preview was not available.

Here are the errors I get when I try to preview the .listing
Could you please advise on this?
Warning: opendir(/home/pmpizza/public_html/administrator/components/com_chronocontact/themes/.listing/css/) [function.opendir]: failed to open dir: Not a directory in /home/pmpizza/public_html/administrator/components/com_chronocontact/admin.chronocontact.php on line 1711

Warning: readdir(): supplied argument is not a valid Directory resource in /home/pmpizza/public_html/administrator/components/com_chronocontact/admin.chronocontact.php on line 1712

Warning: closedir(): supplied argument is not a valid Directory resource in /home/pmpizza/public_html/administrator/components/com_chronocontact/admin.chronocontact.php on line 1716

Warning: require_once(/home/pmpizza/public_html/administrator/components/com_chronocontact/themes/.listing/elements.php) [function.require-once]: failed to open stream: Not a directory in /home/pmpizza/public_html/administrator/components/com_chronocontact/admin.chronocontact.php on line 1736

Fatal error: require_once() [function.require]: Failed opening required '/home/pmpizza/public_html/administrator/components/com_chronocontact/themes/.listing/elements.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pmpizza/public_html/administrator/components/com_chronocontact/admin.chronocontact.php on line 1736
GreyHead 03 Feb, 2011
Hi kdbates,

I don't recognise 'listing', I have only 'default' and 'theme1' showing.

Bob
This topic is locked and no more replies can be posted.