css

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; ?>">

drupal_add_css not adding css

  1. function apb_zen_preprocess_page(&$vars, $hook) {
  2.   if (drupal_is_front_page()) {
  3.     drupal_add_js(path_to_theme() .

RGBa PNG generator

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file rgbapng.module
  6.  * @desc This module provides callbacks that generate transparent PNG for CSS backgrounds.
  7.  *
  8.  * DEPENDENCIES imageapi, imageapi_gd

image_gallery.css

  1. ul.galleries {
  2.   list-style-type : none;
  3.   margin : 0;
  4.   padding : 0;
  5. }
  6.  
  7. ul.galleries li {
  8.   position : relative;
  9.   background : #eeeeee;
  10.   border : 1px #cccccc solid;
  11.   margin : 1em 0;

float these radios next to each other (please)

  1. <div id="edit-notify-wrapper" class="form-item">
  2. </div>
  3. <div class="form-radios">
  4. <div id="edit-notify-type-1-wrapper" class="form-item">
  5. <label class="option">

Fix for chipt4&#039;s views block problem

  1. This is the HTML generated by Views [1.x-dev on D5] for my block:
  2.  
  3. <div id="block-views-newreleases" class="block block-views region-even odd region-count-2 count-5 collapsiblock-processed">

chipt4's views block problem

  1. This is the HTML generated by Views [1.x-dev on D5] for my block:
  2.  
  3. <div id="block-views-newreleases" class="block block-views region-even odd region-count-2 count-5 collapsiblock-processed">
Syndicate content