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 07-30-2007, 10:48 PM
CaptorOfSin CaptorOfSin is offline
 
Join Date: Jan 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Header in Firefox

Hey guys, I have a flash header in place of my logo. Everything is great in IE but in Firefox its aligned to the right and i'm having some trouble fixing it. Any help would be terrific.

My code looks like this:

Code:
<table style="border: 1px solid #666666;" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="top">

<link rel="stylesheet" href="style1.css" type="text/css" media="screen" />

<div id="header">
<h1><a href="http://www.forceunleashed.org" target="_self">Star Wars: Force Unleashed</a></h1>
<h2>unleash the force... </h2>

</div>
<!-- end id:header -->


<!-- logo -->




<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td class="body" align="center">  
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="760" height="189" id="flashforums" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="flashforums.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="flashforums.swf" quality="high" bgcolor="#ffffff" width="760" height="189" name="flashforums" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
   </td>
</tr>
</table>
<!-- /logo -->

Link is here: Forums

Thanks in advance!
Reply With Quote
  #2  
Old 08-04-2007, 02:44 AM
CaptorOfSin CaptorOfSin is offline
 
Join Date: Jan 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can nobody help me??
Reply With Quote
  #3  
Old 08-06-2007, 04:47 PM
Martilee Martilee is offline
 
Join Date: Aug 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All i did with mine is <center> </center> works fine in firefox.
Reply With Quote
  #4  
Old 08-06-2007, 04:54 PM
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this code:

Code:
<table style="border: 1px solid #666666;" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="top">

<link rel="stylesheet" href="style1.css" type="text/css" media="screen" />

<div id="header">
<h1><a href="http://www.forceunleashed.org" target="_self">Star Wars: Force Unleashed</a></h1>
<h2>unleash the force... </h2>

</div>
<!-- end id:header -->
<!-- logo -->
<br>
<center>
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td class="body" align="center">  
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="760" height="189" id="flashforums" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="flashforums.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="flashforums.swf" quality="high" bgcolor="#ffffff" width="760" height="189" name="flashforums" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
   </td>
</tr>
</table>
</table>
</center>
<!-- /logo -->
Reply With Quote
  #5  
Old 08-06-2007, 08:03 PM
CaptorOfSin CaptorOfSin is offline
 
Join Date: Jan 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help, but it's still the same. The header is still aligned to the right in Firefox.
Reply With Quote
  #6  
Old 08-11-2007, 09:54 PM
DemonOuterverse DemonOuterverse is offline
 
Join Date: Dec 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a conflict with your #header style. With the float:left, it's causing the table with the flash to float to the left of the header DIV.

If you change it from:
HTML Code:
#header {
    clear: both; 
    float: left; 
    margin: 10px 5px; 
    width: 450px;
}
To:
HTML Code:
#header {
    clear: both; 
    margin: 10px 5px; 
    width: 450px;
}
Another option would be to move the flash into the header div, but that would then cause the forum tables to float to the left of the header and the flash.

---
On an unrelated note, I noticed that the header text's background is the same as the page's body background.

I'd look at also changing:
HTML Code:
<table style="border: 1px solid #666666;" width="760" cellpadding="0" cellspacing="0" border="0" align="center">
to:
HTML Code:
<table style="border: 1px solid #666666; background:#FFFFFF;" width="760" cellpadding="0" cellspacing="0" border="0" align="center">
so that the header matches the rest of the forum's background instead of the body background color.

---
And one final thing, the header text doesn't match the way it looks on the rest of forceunleased.org.
I'd change:
HTML Code:
#header h1 a {
    
    text-decoration:none;    
    border:none;
}
to:
HTML Code:
#header h1 a {
    font-family:"Times New Roman", Times, serif;
    color:#000099;
    text-decoration:none;    
    border:none;
}
because it seems that it's inheriting vBulletin's link style there. I'm not sure what the exact color is, but #000099 came very close.

One last thing. Eliminate the <center></center> thing if you're going for XHTML 1.X compliance.
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 06:29 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.03841 seconds
  • Memory Usage 2,215KB
  • 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_code
  • (6)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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