vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Help with Alternating Color backgrounds (https://vborg.vbsupport.ru/showthread.php?t=131505)

Phooey 11-13-2006 10:19 PM

Help with Alternating Color backgrounds
 
I'm trying to get a small image (no larger than maybe 10x10 pixels) to repeat horizontally at both the top and bottom of my alternating color css styles. Ideally, it will be a different image on the top than at the bottom. I can get it to do either one or the other, but not both. Any tips how?

Thanks,
Phooey

CyberAlien 11-15-2006 03:09 PM

You can't have more than one background image for css class.

The only solution is to put nested <div> in table cells like this: <td class="alt1"><div class="altdiv">contents of table cell</div></td> and put different background images for it. Because div might not have full height of table cell I suggest to put top image background for altdiv and bottom image background for alt1/alt2/alt3.

In extra css add code like this:
Code:

.alt1 .altdiv, .alt1Active .altdiv {
  background-image: url(whatever.gif);
  background-repeat: repeat-x;
  background-position: top left;
}
.alt2 .altdiv, alt2Active .altdiv {
 ... same as above, but for alt2
}
.alt3 .altdiv {
 ... same as above, but for alt3
}



All times are GMT. The time now is 03:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00924 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete