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)
-   -   Moving a banner up 10 pixels (https://vborg.vbsupport.ru/showthread.php?t=198751)

dismas 12-13-2008 04:13 AM

Moving a banner up 10 pixels
 
First, here's the link to my site: http://www.vermontoutdoors.net/

Now, the banner in the upper right. I'd like to move that up about 10 pixels. I've tried a valign tag in the table but it's already middle aligned. And top aligning it shoves it up above the visual borders of that 'cell' in the style. I've tried changing the height of the table but doing that screws up the background images below that 'cell'. Is there some other method that I can use to move that banner up about 10 pixels to make it look a bit more centered vertically in that background graphic?

Adam21 12-13-2008 08:58 AM

Quote:

Originally Posted by dismas (Post 1684322)
First, here's the link to my site: http://www.vermontoutdoors.net/

Now, the banner in the upper right. I'd like to move that up about 10 pixels. I've tried a valign tag in the table but it's already middle aligned. And top aligning it shoves it up above the visual borders of that 'cell' in the style. I've tried changing the height of the table but doing that screws up the background images below that 'cell'. Is there some other method that I can use to move that banner up about 10 pixels to make it look a bit more centered vertically in that background graphic?

try using CSS i.e margin-top: 10px;

dismas 12-14-2008 10:47 PM

Where would I put that?

This is what I have and it's still on the bottom of that background image:
Code:

    <td height="133" align="center" valign="middle" id="header_right_cell" margin-top: 10px>
    <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />$random_banner[$random_number]</if>
    </td>


Winterworks 12-14-2008 10:56 PM

That goes in a separate CSS file.

Or, open the banner in an image editing program, and add a bit more transparent space to the bottom, and it should raise it a bit.

Adam21 12-15-2008 11:09 AM

Use the class="css name" and add the margin-top: 10px; in your additional css under the css name.

Princeton 12-16-2008 11:24 AM

use valign="top"

then as Adam21 suggested add
HTML Code:

style="margin-top:10px"
you can adjust by editing the number 10 to whatever fits

Seven Skins 12-16-2008 01:11 PM

In header template:

Find:
HTML Code:

<a href="http://www.treadlightly.org/"><img src="http://www.vermontoutdoors.net/images/offhighwaymotorcyclebanner.gif" alt="" border="0" /></a>
Replace:
HTML Code:

<a href="http://www.treadlightly.org/"><img src="http://www.vermontoutdoors.net/images/offhighwaymotorcyclebanner.gif" alt="" border="0" /></a><br /><br />

dismas 12-22-2008 02:27 AM

Thanks all. The last explanation was the best for my knowledge level of HTML and CSS. And it looks fine.


All times are GMT. The time now is 09:16 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.01098 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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