vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Auto stretch header (https://vborg.vbsupport.ru/showthread.php?t=125473)

chilllax 09-01-2006 01:26 AM

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:)

steven s 09-01-2006 02:52 AM

1 Attachment(s)
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%.

Ntfu2 09-01-2006 03:03 AM

<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;
}

steven s 09-01-2006 03:13 AM

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.

Ntfu2 09-01-2006 03:15 AM

oops, thought he already had it into peices.

steven s 09-01-2006 03:20 AM

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?

Ntfu2 09-01-2006 03:23 AM

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 :)

chilllax 09-01-2006 10:13 AM

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?

steven s 09-01-2006 10:36 AM

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.

Ntfu2 09-01-2006 04:12 PM

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


All times are GMT. The time now is 09:19 PM.

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.01028 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete