What you would do, is when you call (Cake 1.2 style) the input method,
specify the class to be used
$form->input('fieldname',array('class'=>'floatleft') );I believe floatleft would be appended to the class 'input' (resulting in 'input floatleft'), but you should test it On 6/26/07, Siegfried Hirsch <[EMAIL PROTECTED]> wrote: > > I have the same problem here. > > I want some input fields in horizontal position and some as usual > with the label above the input field. > Is there a way to specify a second class for the surrounding <div > class="input"> > so that I am able the change the css behavior of different input fields. > > I know I could do this by hand, but that is not very cake like I guess and > I really want to use the formhelper, whereever possible. > > Thanks > Siegfried > > 2007/6/25, trooney <[EMAIL PROTECTED]>: > > > > You can chain together multiple classes on a single element, eg <div > > class="input floatleft">. But your question is more related to > > stylesheets, rather than CakePHP. You should consult the Google oracle > > for more information on CSS. > > > > On Jun 24, 3:24 pm, Amy1234 <[EMAIL PROTECTED]> wrote: > > > can I overide the <div class ="input"> in my css class to how I want > > > all my forms to be? > > > > > > On Jun 24, 2:27 pm, trooney <[EMAIL PROTECTED]> wrote: > > > > > > > Google CSS & Floats to find articles on how to dynamically position > > > > elements on a page. > > > > > > > If you've baked your views with 1.2, your form elements are wrapped > in > > > > <div class="input"> tag. A quick and dirty method would be applying > > > > the style attribute directly to the divs wrapping the title and > author > > > > elements, then clearing the next div element after these two. > > > > > > > On Jun 24, 1:26 pm, Amy1234 <[EMAIL PROTECTED]> wrote: > > > > > > > > Hello, > > > > > > > > I have googled this but is unable to find out how to do this. On > my > > > > > forms instead of vertically listed fields such as:Title: ______ > > > > > Author: _______ > > > > > > > > I would like it to be: Title: ________ Author: ________ > > > > > > > > how would I do that. > > > > > > > > Thanks for your help > > > > > Amy > > > > > > > > "________" would be the input box. > > > > > > > > > > > > -- > Siegfried Hirsch > hhS - Welserstr. 1 - 81373 M�nchen - (089) 5484 3564 - skype:shirsch > http://gadgetgui.de / http://www.rss-blogger.de > http://www.newsbee.de NewsBee 2 - customized RSS solutions > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
