Jump to content

[SOLVED] Border image size won't resize to table content


captain20bucks

Recommended Posts

Hi, I've been messing around with this for along time and I figured this would be the best place to see if anyone knows a solution.

On the bio's page of my website I set it up so the guys can update their images through a form I made then all of the data for the image and their bios come in from a mysql database.

The problem is my border is an image set to 100% and when the page loads the border does not connect to the rest of the table. But when you refresh the page the problem is gone until you clear your cache. I tried implementing a javascript function to resize the border images to 100%

function iesucks() {

    var left = document.getElementById("lm");

    var right = document.getElementById("rm");

    left.style.height = "100%";

    right.style.height = "100%";

    return;

}

and then call it through <body onLoad="iesucks()"> but it seems that the call is being made when the HTML is loaded, not the php also.

Ironically after implementing my javascript function IE no longer has an issue, but it is still a problem in Firefox 2.0. I guess my question is, is there a way for my php to tell my javascript it is done loading so Firefox will quit having a hissy fit?

 

You can see my problem at

http://www.100ppt.com/bios/branden.php

Neeeeevermind, I got rid of the img tags and the javascript, then for the table column that hold the side images i just used a CSS

#right {
height: 100%;
width: 19px;
background-image: url("../images/rm.png");
background-repeat: repeat-y;
}

and another one for the left one. Apparently Firefox doesn't like images sized 100% but it doesn't mind table columns set for 100% with image backgrounds.

Anyway problem solved

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.