PDA

View Full Version : Center in Netscape


blue27
05-04-04, 04:37 PM
Does anyone know how I can change this so everything will be centered in Netscape. It currently works fine in Explorer.

</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="text-align: center" onload="preloadImages()" >
<table id="Table_01" width="761" height="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="10">
<img src="images/HHTemplate_01.gif" width="760" height="134" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="134" alt=""></td>

Chicken
05-04-04, 10:58 PM
Errrrrr.... after the <body> tag, add a <center> tag?

nameslave
05-05-04, 07:29 AM
To be frank, I haven't used Netscape for a while; but do you mean the table is not centred in a e.g. 1024 by 768 pixels setting? A center tag like Chicken suggested should do. (Just remember to close it later on, unless you have nothing else thereafter.)

But if that table only contains a single graphic file (HHTemplate_01.gif), why do you need a spacer gif for 1 pixel in width and make the table 761? Just curious. My guess is that there probably are other elements down the page. Or could you include more codes for a bigger picture?

blue27
05-05-04, 09:18 AM
The spacer gif was created automatically. I haven't done any hand coding or anything yet. It was added by ImageReady.