Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2006, 11:40 PM
TheAllusionist TheAllusionist is offline
 
Join Date: Apr 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Gradients repeat in 'Y' and stretch in 'X'

Quick question, I am wanting a gradient that repeats in the y (vertical direction) to adjust to the width of the viewers monitor resolution or width of the display. The gradient actually gradiates itself so I want it to fill up the tcat table instead of only how big wide the image is, I want it to stretch and shrink so to speak. I have tried the following:

Quote:
#FFFFFF url(images/OrangeJuice/gradients/gradient_site.jpg) repeat-y top left; width: 100%

#FFFFFF url(images/OrangeJuice/gradients/gradient_site.jpg) repeat-y top left; stretch-x

#FFFFFF url(images/OrangeJuice/gradients/gradient_site.jpg) repeat-y top left; expand-x
But they do not seem to work, can it be done? I could go to one that fades to white and then it wouldn't matter I guess, but my tcat text is white and on some screens there is some text on the far right and it becomes invisible and I don't know where to change that, I think I would have to overwrite the defaults in some of the templates. I have been trying numerous versions, trying to find what works best and being able to contro the stretch factor would help a lot. Thanks in advance.

Russell

http://www.3dallusions.com/forums/
Reply With Quote
  #2  
Old 09-30-2006, 01:45 AM
TheAllusionist TheAllusionist is offline
 
Join Date: Apr 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No guru's care to share the answer?
Reply With Quote
  #3  
Old 09-30-2006, 07:38 PM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a bit confused with "gradient actually gradiates itself ", you mean your not using an image to create the gradient?

Also as for your question, I don't know of any way that this could be done using css alone, where the image size would automatically expand in lenght according to the size of the box. I could be wrong though.
Reply With Quote
  #4  
Old 09-30-2006, 08:33 PM
TheAllusionist TheAllusionist is offline
 
Join Date: Apr 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sean, thanks for trying to help out. I am using a horizontal linear image that repeats vertically. What I am trying to figure out is if there is a way to control it so that it stretches or shrinks in the horizontal direction to fill in the width of the users screen so that I can visually control the consistancy of the gradation in the horizontal direction.

basically the repeat-y in the code above works great for filling the tcat vertically, I am trying to figure out how to strech horizontally since that direction isn't repeating (Hmmm, I will have to check no-repeat to see if that will do it, but I think I tried that all ready). Perhaps you are right and it can't be done, I did want to ask just to make sure.

Thanks again!

Russell
Reply With Quote
  #5  
Old 10-01-2006, 03:40 AM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem at all Russell,

as far as I know, or the way I would do it would be exactly the same way you did it. I don't know of any way that you can expand the background image, there might be a way, but it will probably require some kind of javascript function I'm guessing.

Another problem is that if you find a way to do it, it will most likely act differently for different browsers so the best bet would be to either change your font color or do something about your background color.

--------------------------------------------------------------------------
small solution:

One little thing that you can do, is to set the alignment to "top right", that way you get more of the darker color at the left where your text starts, and set your background color to the darker color. So it would look like this for example,

Quote:
#E77020 url(images/OrangeJuice/gradients/gradient_site.jpg) repeat-y top right;
--------------------------------------------------------------------------

hope that made sense
Reply With Quote
  #6  
Old 10-01-2006, 04:10 AM
TheAllusionist TheAllusionist is offline
 
Join Date: Apr 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Makes perfect sense, just overlooked it with all the trial and error, which is unfortunately how I figure stuff out! LOL Thanks again for taking the time to lend a hand.

Best regards,

Russell
Reply With Quote
  #7  
Old 10-01-2006, 04:39 AM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol I hear you, I do that a lot. Glad I could help out Russell
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:12 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.06900 seconds
  • Memory Usage 2,217KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete