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)
-   -   Header Backround Color (https://vborg.vbsupport.ru/showthread.php?t=243401)

Jamie V 05-27-2010 12:39 PM

Header Backround Color
 
Hello, I'm looking for some help with my header color. I'm very, very new to this (what comes before rookie, thats me)

In my header template I have something that looks like this.

<table width="96%" background="images/gradients/gradient_thead.gif" align="center">

<tr>
<td align="left"><a href="http://www.lightningrodder.com/forum"><span style="color:white;"><b>Lightning Rodder Forums</b></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="left center"><a href="http://www.delvallo.net/forum/index.php"><span style="color:white;"><b>Home</b></a> &nbsp;&nbsp;&nbsp;<a href="http://delvallo.net/gallery/"><span style="color:white;"><b>Gallery</b></a> &nbsp;&nbsp;&nbsp;</td><td align="right"><a href="http://www.nloc.net/vbforum"><span style="color:white;"><b>NLOC Forums</b></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>


Everything woks fine but where it says background="images/gradients/gradient_thead.gif" that makes a blue color strip. I want a red color (#D40000) but I can't do that. I tried removing the images/gradients/gradient_thead.gif and that does away with the blue backround (thats how I have it now) and then I tried changing the<tr> to <tr Bgcolor="#D40000"> and that changes the exact part to the exact color but it shows the breaks in the header (where it is "left", "left center", and "right").

Does any of this make sense?

Jamie

jamesyfx 05-30-2010 11:54 AM

So you would like the entire table to have a background of #D40000, with no borders/lines between the cells, correct?

If so, use this code:

HTML Code:

<table width="96%" cellspacing="0" align="center" style="background:#D40000">

<tr>
<td align="left"><a href="http://www.lightningrodder.com/forum"><span style="color:white;"><b>Lightning Rodder Forums</b></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="left center"><a href="http://www.delvallo.net/forum/index.php"><span style="color:white;"><b>Home</b></a> &nbsp;&nbsp;&nbsp;<a href="http://delvallo.net/gallery/"><span style="color:white;"><b>Gallery</b></a> &nbsp;&nbsp;&nbsp;</td><td align="right"><a href="http://www.nloc.net/vbforum"><span style="color:white;"><b>NLOC Forums</b></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>

The breaks in the table are due to the lack of a cellspacing value in the <table> tag. If you set this to zero, it pushes all the cells together so there are no gaps around them.

Hope this is what you wanted.

Jamie V 05-30-2010 12:14 PM

That's exactly what I needed! Thank You.

jamesyfx 05-30-2010 02:22 PM

Not a problem. Any other problems, let me know. :] Happy to help.

Good luck!


All times are GMT. The time now is 11:41 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.01560 seconds
  • Memory Usage 1,719KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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