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)
-   -   Image as background help! (https://vborg.vbsupport.ru/showthread.php?t=233818)

MarkFoster 01-22-2010 03:06 AM

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.

Hell Bomb 01-22-2010 03:09 AM

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

MarkFoster 01-22-2010 03:18 AM

Quote:

Originally Posted by hellbomb (Post 1963045)
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 "********".

Hell Bomb 01-22-2010 03:38 AM

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.

MarkFoster 01-22-2010 05:00 AM

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...


All times are GMT. The time now is 02:03 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.01067 seconds
  • Memory Usage 1,731KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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