css

Fix for three block horizontal layout

  1. #footer-blocks{
  2.    margin:0;
  3.    background-color:#667439}
  4.  
  5. #footer-blocks-inner{
  6.    padding:1em 2%;}
  7.  
  8. #footer-blocks .block{
  9.    height:300px;
  10.    overflow:auto;
  11.    border:1px solid #d0d5d9}

style.css

  1. /**
  2.  *
  3.  * Pixture, for Drupal
  4.  * Author: PIXTURE STUDIO <http://www.pixture.com>
  5.  *
  6.  */
  7. /*
  8. ** Generic elements
  9. */
  10. html {
  11.         font-size: 100%; /*Fix a IE em BUG*/
  12. }
  13. font, basefont {
  14.         font-siz

Drupal 7 css Error

  1. brian@briansx301:~$ cd /var/www/
  2. brian@briansx301:/var/www$ ls
  3. briantestmysql.php  drupal  index.html  info.php  testhtml.html  wordpress
  4. brian@briansx301:/var/www$ cd drupal
  5. brian@briansx301:/var

Fix for Inline webform results

  1. .webform-component {
  2.   display:inline;
  3.   margin-right: 5px;
  4. }

Inline webform results

  1. .webform-component .form-item {
  2.   display:inline;
  3.   margin-right: 5px;
  4. }

CSS to hide Webform checkbox form label and line up options (display: inline disabled for debugging)

  1. /* CSS to hide Webform checkbox form label and line up options (display: inline disabled for debugging) */
  2. form#webform-client-form-121 {
  3.   clear: both;
  4. }
  5.  
  6. #webform-client-form-121 #webform-compo

CSS Code

  1. Here some CSS code:
  2.  
  3. h1
  4. {
  5. font-size: 2em;
  6. line-height: 1.3em;
  7. margin-top: 0;
  8. margin-bottom: 0.5em; /* 0.5em is equavalent to 1em in the page's base font.
  9.                          Remember, a m

three block horizontal layout

  1. #footer-blocks{
  2.    margin:0;
  3.    background-color:#667439}
  4.  
  5. #footer-blocks-inner{
  6.    padding:1em 2%;}
  7.  
  8. #footer-blocks .block{
  9.    height:300px;
  10.    overflow:auto;
  11.    border:1px solid #d0d5d9}

Fix for Different body class for each page

  1. /*  In template.php:  */
  2.  
  3. function YOURTHEME_preprocess_page(&$vars) {
  4.   $vars['body_bg_class'] = arg(0);
  5. }
  6.  
  7. /* In page.tpl.php */
  8.  
  9. <body class="<?php print $body_bg_class; ?>">

Different body class for each page

  1. /*  In template.php:  */
  2.  
  3. function YOURTHEME_preprocess_page(&$vars) {
  4.   $vars['body_bg_class'] = arg(0);
  5. }
  6.  
  7. /* In page.tpl.php */
  8.  
  9. <body class="<?php print $body_bg_class; ?>">
Syndicate content