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)
-   -   Banner centered but showing up wrong. (https://vborg.vbsupport.ru/showthread.php?t=152870)

obscura1560 07-20-2007 06:06 PM

Banner centered but showing up wrong.
 
<a href="http://www.uk-mma.co.uk" target="_blank">http://www.uk-mma.co.uk</a>

I have centered the image successfully, but on my screen (1280x1024), it shows up off center. However, if I change the size of the window down to 960 width, it shows up fine. Is there anyway I can keep the image centered no matter what?

hinch 07-20-2007 06:17 PM

Code:

<table border="0" width="960" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td><div style="margin: 0 auto;" align="center"><a href="index.php"><img src="/ukmmabanner.jpg" border="0" alt="UK-MMA" /></a></div></td>

</tr>
</table>

assume you mean you want the image slap bang in the centre? you can do it using a table as above or you could completely do away with the table and use a div

Code:

<div style="margin: 0 auto;background-color: #ffffff;width:960px;" align="center"><a href="index.php"><img src="/ukmmabanner.jpg" border="0" alt="UK-MMA" /></a></div>

obscura1560 07-20-2007 06:21 PM

Okay that works, great! But one more problem, there's now a gap between the header and the forum

Edit: Okay simple answer, there was an &nbsp; tag that separated it, it works fine now.

Thanks a lot man


All times are GMT. The time now is 02:49 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.00973 seconds
  • Memory Usage 1,709KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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