Link to home
Start Free TrialLog in
Avatar of gmahler5th
gmahler5thFlag for United States of America

asked on

Why is there a 2-3 pixel difference between http and https versions of my site?

In switching between http and https version of my Website, using exactly the same code, the https version is approximately 2-3 pixels lower from the top of the page than the http version is.

For example:

Http: http://www.camilee.com/general/about.asp
Https: https://www.camilee.com/cgi-bin/miva?Merchant2/merchant.mv+Screen=LOGN&Order=1

Any help you could provide would be greatly appreciated.
Avatar of Timbo87
Timbo87

There is an extra un-needed table at the top of the https site. Remove these lines under <BODY>:

<TABLE BORDER = 0 CELLPADDING = 0 CELLSPACING = 0 WIDTH = "100%">
<TR>
<TD ALIGN = "left" VALIGN = "top" WIDTH = "80%">
<BR>
Also set the topmargin back to 0.
Avatar of seanpowell
Actually there's 2 whole section's that need to go:

****REMOVE THE FOLLOWING****
<HTML>
<HEAD>
<TITLE>Camilee Designs: Order: Customer Login</TITLE>
<BASE HREF = "https://www.camilee.com/Merchant2/">
</HEAD>
<BODY  BGCOLOR = "#ffffff">
<TABLE BORDER = 0 CELLPADDING = 0 CELLSPACING = 0 WIDTH = "100%">
<TR>
<TD ALIGN = "left" VALIGN = "top" WIDTH = "80%">
<BR>
<FONT FACE = "Arial, Helvetica" SIZE = "-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

****KEEP THE REST****
<html>
<head>

...


</BODY>
</HTML>

****AND THEN REMOVE THIS AT THE BOTTOM OF THE PAGE****
</FONT>
</TD></TR>
</TABLE>
</BODY>
</HTML>


Also, remove this from the body tags, as they've been replaced with CSS attributes:
 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0

And add this CSS code instead between your head tags:

<style type="text/css">
<!--
body { margin:0px; padding:0px; }
//-->
</style>
ASKER CERTIFIED SOLUTION
Avatar of JeffSteiner
JeffSteiner

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gmahler5th

ASKER

Hi guys...  the first 3 answers would work, but it appers that those tags are put their by the Miva merchant engine, which I have no control over.

I used the <div> tag that JeffSteiner suggested, and it worked.

Thanks all for your suggestions!