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 01-22-2010, 03:06 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Image as background help!

Hello,

I added this code to a page:
HTML Code:
<td width="208" bgcolor="#0d150f" background="images/mainbg.png"><img src="images/mainbg.png" width="208" height="1037"></td>
However, the content on the page is moved to the right side and is a little bit smaller because that are stuck there. How can I change the code the make the image act as a background, meaning that the content on the page would be above the image?

Thanks.
Reply With Quote
  #2  
Old 01-22-2010, 03:09 AM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to add the code to an existing part of the code. Tables will move the rest of the columns over to make room for that. put it in an existing TD or a DIV code.

Looking at the code add the following to the template where you added the current TD.

Find the following
<td style="padding-right: 15px;" width="175">

and replace it with the following
<td width="175px" style="background-image:url(images/mainbg.png); background-repeat: repeat;">

and it should work just fine any problems let me know
Reply With Quote
  #3  
Old 01-22-2010, 03:18 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellbomb View Post
You need to add the code to an existing part of the code. Tables will move the rest of the collums over to make room for that. put it in an existing TD or a DIV code.
Only because my title says "Coder/Designer" doen't mean I'm good at this so I'm asking you for a little more help than that, please.

This is the code:

HTML Code:
<table width="$stylevar[outertablewidth]" class="page" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="16" bgcolor="#0d150f" background="images/styles/rwc_372/misc/rwc_leftside_spacer.png"><img src="images/styles/rwc_372/misc/rwc_leftside_spacer.png" width="16" height="1"></td>
******** <td width="208" bgcolor="#0d150f" background="images/mainbg.png"><img src="images/mainbg.png" width="208" height="1037"></td> ********
		<td width="100%">
            <!-- open content container -->

            <if condition="$show['old_explorer']">
                <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                    <tr>
                      <td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">

            <else />
            <div align="center">
                <div class="page" style="100%; text-align:$stylevar[left]">
                    <div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px" align="$stylevar[left]">
            </if>
I put the part that I want to act as a background in within "********".
Reply With Quote
  #4  
Old 01-22-2010, 03:38 AM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm get rid of the TD you put and replace "<td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">" with he code i provided in my past post and see if that works.
Reply With Quote
  #5  
Old 01-22-2010, 05:00 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wasn't able to find "<td style="padding-right: 15px;" width="175">" anywhere. And are you sure we are talking about the same thing? I noticed that the code in your post is about the spacer...

All I want is to have the image as a background so that content will float over it...
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:04 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.03840 seconds
  • Memory Usage 2,204KB
  • 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_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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