+ Reply to Thread
Results 1 to 4 of 4

Thread: CSS for default Zend_Form

  1. #1
    intregus is offline Junior Member
    Join Date
    Feb 2008
    Posts
    17

    Default CSS for default Zend_Form

    I was about to start trying to overhaul the decorators for zend form, but then I started looking up some articles on styling forms with definition lists, and it's really pretty powerful. I wrote up some css to help get started if anyone is interested. I'm not a css expert, so I'm sure this code isn't perfect, but it's a good starting point for anyone using the default decorators.

    Code:
    /* Zend Form Styling */
    	dl.zend dt, dd { min-height: 30px; }
    	dl.zend_form dt {
    		float: left;
    		clear: left;
    		text-align: right;
    	}
    	dl.zend_form dt label.required { font-weight: 600; }
    	dl.zend_form dd {
    		float: left;
    		clear: right;
    		padding-left: 5px;
    	}
    	
    	dl.zend_form dd ul.errors {
    		list-style: none;
    		padding: 0;
    		margin: 0;
    	}
    	
    	dl.zend_form dd ul.errors li {
    		float: left;
    		margin: 0 0.15em;
    		font-size: 12px;
    		color: #666666;
    	}

  2. #2
    gastoncs is offline Junior Member
    Join Date
    Apr 2009
    Location
    Albany NY USA
    Posts
    3

    Default

    Thank you!

  3. #3
    umpirsky is offline Junior Member
    Join Date
    May 2008
    Posts
    9

    Default screen

    Nice!

    It would be great if you attatch a screenshot as well.

  4. #4
    umpirsky is offline Junior Member
    Join Date
    May 2008
    Posts
    9

    Default Useful linl


+ Reply to Thread

Similar Threads

  1. Default Locale isn't used
    By Louis in forum Internationalization (i18n) & Localization (l10n)
    Replies: 7
    Last Post: 07-01-2010, 02:35 PM
  2. modify default router
    By rbx in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 04-01-2010, 04:53 PM
  3. Amf0 is default?
    By brannon in forum Web & Web Services
    Replies: 1
    Last Post: 08-17-2009, 01:47 PM
  4. default module
    By jonathanp in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 02-25-2009, 07:31 AM
  5. default routes
    By ec_stasis in forum Model-View-Controller (MVC)
    Replies: 3
    Last Post: 06-17-2008, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts