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)
-   -   Gradient in Postbit Issue (https://vborg.vbsupport.ru/showthread.php?t=220481)

Contra Fates 08-08-2009 09:49 PM

Gradient in Postbit Issue
 
Hello,

I've been trying to add in a gradient background image to my postbit legacy, and have so far been successful in adding it to the postbit area on the left where all the avatar, username, etc is. But, I can't seem to add it to the actual message area without causing weird stretching. This is the code I used to do the gradient on the left side, along with what I was going to use for the postbit message area.

If anyone could give me the fix for this, I'd be very appreciative:

Code:

<td class="alt2" style="text-align: center; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px solid #000000; background: #03273F
url(image url is in here) repeat-x top left;" height="100%" align="center" >

This is what I used for the message area, that causes the strange stretching on the left side. [But only on certain posts!]

Code:

<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />

<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px solid #000000; background: #03273F
url(image url in here) repeat-x top left;" height="100%" align="center">

Any help would be greatly appreciated. I really want to add in the gradients, but I can't seem to figure out what I did wrong with the code to make it stretch the way it is.

Thanks in advance!

Seven Skins 08-10-2009 04:53 PM

Make another css class say "postbit_bg" with just background property.

And add that class to the table cell.

e.g. class="alt1 postbit_bg"

.


All times are GMT. The time now is 11:26 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.01569 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)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