Problems with align= function: HTML, CSS, JavaScript, PHP
Hello.
I use html language and I have problem with the align function.
I am not able to align objects or text to left, center or right. The align function isn’t working at all, inside the table or outside the table.
Here is the html code for the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE>Welcome to World CARP Tartu!</TITLE>
<SCRIPT language=JavaScript>
<!-- Hide the script from old browsers --
img0_on = new Image(172,32);
img0_on.src="images/button_after.jpg";
img0_off = new Image(172,32);
img0_off.src="images/button_before.jpg";
img1_on = new Image(172,32);
img1_on.src="images/button_after.jpg";
img1_off = new Image(172,32);
img1_off.src="images/button_before.jpg";
img2_on = new Image(172,32);
img2_on.src="images/button_after.jpg";
img2_off = new Image(172,32);
img2_off.src="images/button_before.jpg";
img3_on = new Image(172,32);
img3_on.src="images/button_after.jpg";
img3_off = new Image(172,32);
img3_off.src="images/button_before.jpg";
img4_on = new Image(172,32);
img4_on.src="images/button_after.jpg";
img4_off = new Image(172,32);
img4_off.src="images/button_before.jpg";
img5_on = new Image(172,32);
img5_on.src="images/button_after.jpg";
img5_off = new Image(172,32);
img5_off.src="images/button_before.jpg";
function over_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_on.src");
}
function off_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_off.src");
}
// --End Hiding Here -->
</SCRIPT>
for the elements you are trying to align... just a guess.
Instead of the HTML ALIGN="", you could try the CSS 'float' attribute, although that depends on how your page is structured;
http://www.w3schools.com/css/pr_class_float.asp