vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   XHTML & Compliancy woes.. (https://vborg.vbsupport.ru/showthread.php?t=70088)

Oblivion Knight 10-02-2004 06:06 AM

XHTML & Compliancy woes..
 
1 Attachment(s)
I've been working on a new forum skin, only to find that it looks rather bad in Mozilla Firefox and other such browsers..

The postbit for example, looks different in Mozilla than it does in IE6. I've attached screenshots of this, and below is the code that I am using (rather scrappy atm) - can anyone possibly help me out?


HTML Code:

<code="removed-because: problem fixed;">

Zachery 10-02-2004 11:32 AM

Quote:

Originally Posted by Oblivion Knight
I've been working on a new forum skin, only to find that it looks rather bad in Mozilla Firefox and other such browsers..

The postbit for example, looks different in Mozilla than it does in IE6. I've attached screenshots of this, and below is the code that I am using (rather scrappy atm) - can anyone possibly help me out?


HTML Code:

<div align="center">
<table cellspacing="0" cellpadding="0" width="160" border="0" class="tborder"><tr><td>
<table cellspacing="0" cellpadding="0" width="160" border="0">
<tbody>
<tr>
        <td>
                <table height="22" cellspacing="0" cellpadding="0" width="100%" bgcolor="#222222" border="0">
                <tbody>
                <tr>
                        <td valign="middle"<if condition="is_browser('ie', 6)"> align="$stylevar[left]"</if> width="130">
                                <span id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a href="member.php?$session[sessionurl]u=$post[userid]">&nbsp;$post[musername]</a>
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </span>
                        </td>
                        <td valign="middle" align="$stylevar[right]"><if condition="$post[field6]"><img class="inlineimg" src="$stylevar[imgdir_misc]/$post[field6].gif" alt="$post[field6]" />&nbsp;</if></td>
                </tr>
                </tbody>
                </table>
                </td>
        </tr>
        </tbody>
        </table>

        <table cellspacing="1" cellpadding="2" width="160" bgcolor="#333333" border="0">
        <tbody>
        <tr>
                <td><div align="center">
                        <table height="92" cellspacing="0" cellpadding="0" width="92" border="0">
                        <tbody>
                        <tr>
                                <td valign="middle" align="center" background="images-umbrella/a-bg.gif">
                                        <if condition="$show['avatar']">
                                        <if condition="is_browser('ie', 6)"><div><img src="$vboptions[cleargifurl]" height="4" width="1" alt="" /></div></if><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                        </if>
                                </td>
                        </tr>
                        </tbody>
                        </table>
                <if condition="$post['usertitle']"><div class="smallfont"><strong>$post[usertitle]</strong><br /><br /></div></if>
                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                <div class="smallfont">$vbphrase[posts]: $post[posts]</div>
                <if condition="$post['joindate']"><div><img src="images-umbrella/line.gif" height="1" width="105" border="0" /></div>
                <div class="smallfont">Enrolled: $post[joindate]</div></if>
                <div><img src="images-umbrella/line.gif" height="1" width="105" border="0" /></div>
                $post[onlinestatus]
                </div></div></td>
        </tr>
        </tbody>
        </table>

        <table cellspacing="0" cellpadding="4" width="160" bgcolor="#320000" border="0">
        <tbody>
        <tr>
        <td><div align="center">
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                <tbody>
                <tr>
                        <td<if condition="is_browser('ie', 6)"> align="$stylevar[left]"</if> valign="middle"><img src="images-umbrella/umbrella.gif" class="inlineimg" alt="" /></td>
                        <td align="$stylevar[right]" valign="middle">
                                <span class="smallfont"><a href="member.php?$session[sessionurl]u=$post[userid]">Employee #$post[userid]</a></span>
                        </td>
                </tr>
                </tbody>
                </table>
        </div></td>
</tr>
</tbody>
</table>
</td></tr></table>
</div>


Stop using nested tables :P and your problems shall disapate :P


All times are GMT. The time now is 05:22 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.01909 seconds
  • Memory Usage 1,767KB
  • 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
  • (2)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