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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2006, 01:26 AM
chilllax chilllax is offline
 
Join Date: Nov 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Auto stretch header

Right now my header image is a sinlge image and doesnt fit the page exactly. So I split my single image into my logo image and my pattern image. What I want to do is have the pattern image stretch to the size of the forums. What code would I use for this?

thanks for any help and sorry if this is in the wrong section
Reply With Quote
  #2  
Old 09-01-2006, 02:52 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see a way unless you change your image to have horizontal lines.
You could use a 3 column table with your image in the middle and continue with the background in the outside columns using the background tag.
But they would need to be horizontal lines that meet up with the center image.

Edit: Oh wait.
Do you want to use the image on your website now?
You could create a table and use the td background tag of just the background.
Or better yet, separate the background image and use that as a background tag. Set the table to 100%.
Attached Images
File Type: jpg right.jpg (77.3 KB, 0 views)
Reply With Quote
  #3  
Old 09-01-2006, 03:03 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<div class="title">
<img src="first header image.jpg" border="0" />
</div>

title {
background-image: url(http://www.image.com);
background-repeat: repeat-x;
background-position: center top;
}
Reply With Quote
  #4  
Old 09-01-2006, 03:13 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But the image is going to have to be broken into two pieces. The logo and the background.
The background needs to be a linear pattern.
Reply With Quote
  #5  
Old 09-01-2006, 03:15 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops, thought he already had it into peices.
Reply With Quote
  #6  
Old 09-01-2006, 03:20 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ntfu2
oops, thought he already had it into peices.
You're right. I reread the first post.

Is there an advantage using CSS and a div tag over a table tag?
Reply With Quote
  #7  
Old 09-01-2006, 03:23 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no not really.

Some people are CSS nut cases, i have no preference myself. Generally i use the table myself, i have no clue why i posted CSS
Reply With Quote
  #8  
Old 09-01-2006, 10:13 AM
chilllax chilllax is offline
 
Join Date: Nov 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti
I don't see a way unless you change your image to have horizontal lines.
You could use a 3 column table with your image in the middle and continue with the background in the outside columns using the background tag.
But they would need to be horizontal lines that meet up with the center image.

Edit: Oh wait.
Do you want to use the image on your website now?
You could create a table and use the td background tag of just the background.
Or better yet, separate the background image and use that as a background tag. Set the table to 100%.
Thanks for all of the help, so my second stretched image would have to have a linear line pattern, I couldnt have slanted lines? You guys probally know this but what you talking about will only make the image stretch to the size of the forum right?
Reply With Quote
  #9  
Old 09-01-2006, 10:36 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chilllax
Thanks for all of the help, so my second stretched image would have to have a linear line pattern, I couldnt have slanted lines? You guys probally know this but what you talking about will only make the image stretch to the size of the forum right?
I don't think the slanted lines would work because they have to meet each time when repeated with CSS.
I think if you use your slanted lines background, make it wide enough to fit any screen and use it as a background in in a table cell it would work. That way when the screen width is changed, so will the background.

Post the background and top image and I'll show you what I mean.
I'm sure there are other ways to do it. This is the only way I know how.
Reply With Quote
  #10  
Old 09-01-2006, 04:12 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The slanted lines will work, you need to create something like a 2px x 2px version of it, and use that as the background :lol: Its a pain.

Like 1996 said, Post your two images, and the header code you currently have and i'm sure we'll be able to help you
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 04:38 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.03917 seconds
  • Memory Usage 2,270KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete