PDA

View Full Version : skin gets off center


serra00
09-23-2008, 05:37 AM
My skin gets off center in Internet explorer but in mozilla it is perfect. has adjustment this?

notrious
09-23-2008, 08:42 AM
can you paste your header code .....

serra00
10-03-2008, 06:24 PM
<!--[if gte IE 5.5000]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader"
+ "(src=\'" + img.src + "\');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->

<!-- logo -->
<a name="top"></a>
<div class="side_borders">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="$stylevar[left]" valign="middle" width="576" height="92"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>


</tr>
<tr>
<td height="33" colspan="2" style="background-image:url($stylevar[imgdir_misc]/xnav.gif);">

<!-- nav buttons bar -->

<table cellpadding="0" cellspacing="0" border="0" align="left">
<tr align="center">
<if condition="$show['member']">
<td width="78" height="33" ><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/xusercp.gif" width="79" height="33" border="0" alt="" /></a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="33" ><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/xreg.gif" width="79" height="33" border="0" alt="" /></a></td>
</if>
$template_hook[navbar_buttons_left]
<if condition="$vbulletin->products['vbprojecttools']"><td width="78" height="33" ><a href="project.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/xprojects.gif" width="79" height="33" border="0" alt="" /></a></td></if>
<if condition="$vbulletin->products['vbblog']"><td width="78" height="33" ><a href="blog.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/xblogs.gif" width="79" height="33" border="0" alt="" /></a></td></if>
<td width="78" height="33" ><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/xfaq.gif" width="79" height="33" border="0" alt="" /></a></td>
<td width="78" height="33" ><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/xmembers.gif" width="79" height="33" border="0" alt="" /></a></td>
<td width="78" height="33" ><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/xcalendar.gif" width="79" height="33" border="0" alt="" /></a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td width="78" height="33" ><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img src="$stylevar[imgdir_misc]/xnew.gif" width="79" height="33" border="0" alt="" /></a></td>
<else />
<td width="78" height="33" ><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img src="$stylevar[imgdir_misc]/xdaily.gif" width="79" height="33" border="0" alt="" /></a></td>
</if>
<td id="navbar_search" width="78" height="33" ><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/xsearch.gif" width="79" height="33" border="0" alt="" /></a><if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="33" ><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/xlinks.gif" width="79" height="33" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>

</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="33" ><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_misc]/xlogout.gif" width="79" height="33" border="0" alt="" /></a></td>
</if>

</tr>
</table>

<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<table border="0" width="100%" cellpadding="10" cellspacing="0" style="background-color:#1E2830;">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#232D35;">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
</tr>
</table>
<!-- content table -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#232D35;">
<tr>
<td>
<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]



&nbsp
<head>

<script language="Javascript">
<!--
function abrir(){
nueva_vent=open('foro/reproductor.html','vent1','toolbar=0,status=0,loca tion=0,directories=0,menubar=0,scrollbars=0,resize =0,width=200,height=400');
}
//-->
</script>


<center><a href="javascript:abrir()"><img src="http://farm4.static.flickr.com/3271/2848230285_d79cf7d9d1_m.jpg" border="0"></a>
<a href=http://www.xx.com/foro/vbplaza.php?do=givegift&userid=1><img src="http://farm4.static.flickr.com/3180/2849062656_efab78c6b7_m.jpg" border="0" alt="Gift" /></a>
<a href="http://www.xx.com/foro/reglas-y-novedades/1121-como-descargar-de-los-foros.html"><img src="http://farm4.static.flickr.com/3043/2848230585_159686a077_m.jpg" border="0" alt="Descargas" /></a>
<a href="http://www.xx.com"><img src="http://farm4.static.flickr.com/3036/2848230429_fd43a5e00b_m.jpg" border="0" alt="F.A.Q" /></a>
<a href="http://www.xx.com"><img src="http://farm4.static.flickr.com/3248/2849062824_43663f5371_m.jpg" border="0" alt="Arcade" /></a>
<a href="http://www.xx.com?"><img src="http://farm4.static.flickr.com/3107/2849062504_9719e347be_m.jpg" border="0" alt="Tienda" /></a>
<a href="http://www.xx.com"><img src="http://farm4.static.flickr.com/3260/2849062908_c15f578655_m.jpg" border="0" alt="Perfil" /></a></center>






<if condition="$show[guest]">
<!-- Improve registration Rates -->
<style type="text/css">
#topbar{
position:absolute;
border: 0px solid black;
padding: 5px;
background-color: ;
width: 300px;
visibility: hidden;
z-index: 200;
top: 27px;
height: 134px;
left: 13px;
}
</style>
<script type="text/javascript">
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>


<div id="topbar">
<p align="right"><a href="" onClick="closebar(); return false"><img src="WWW.xx.com" border="0" /></a>
</align>
<a href="register.php"><img src="WWW.xx.com"></a></td>
</div>
<!-- End Improve Registration -->
</if>

Lynne
10-09-2008, 08:53 PM
Please use the html tags when posting html. It is too hard to read the code otherwise.

I'd put it through an html validator and see what turns up - http://validator.w3.org/

serra00
10-10-2008, 05:06 AM
so that it serves that page?

Lynne
10-10-2008, 03:25 PM
Yes, go to http://validator.w3.org/ and then point it to the page you are having problems with. It will tell you if your html is valid or not and help to narrow down the problem.

Right now, I look at your template above and see the "<!-- content table -->" and I see a table opened and never closed and that bothers me.

serra00
10-10-2008, 04:21 PM
288 Errors, 15 warning(s) jaja

--------------- Added 1223659298 at 1223659298 ---------------

that I do?

Lynne
10-10-2008, 04:39 PM
Well, that tells you you have a lot of html errors on your page. So, you fix them one-by-one and you hope that one of them is the one that is causing your off center problem.

serra00
10-10-2008, 11:35 PM
I do not understand anything, but it does not concern thanks for anything

serra00
10-17-2008, 06:21 AM
do you know how can i centre it?

What sHould i change?

Lynne
10-17-2008, 02:43 PM
It's hard to tell what to change since we can't see the site and the page source. Somewhere you probably just need to add align="center" to one of your div tags. I really can't say though since I don't have IE to check out your site.