Solved

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

Posted on 2003-11-23
5
262 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:gmahler5th
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 15

Expert Comment

by:Timbo87
ID: 9808569
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>
0
 
LVL 15

Expert Comment

by:Timbo87
ID: 9808574
Also set the topmargin back to 0.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9808796
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>
0
 

Accepted Solution

by:
JeffSteiner earned 125 total points
ID: 9812441
If you use a <div> you can forse the render to a specific position on the page, regardless of where the tables may push the content.
0
 

Author Comment

by:gmahler5th
ID: 9812460
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!
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question