Previous Thread
Next Thread
Print Thread
Rate Thread
#46253 07/17/08 02:59 PM
Joined: Sep 2002
Posts: 390
Shinobi Offline OP
UGN Member
OP Offline
UGN Member
Joined: Sep 2002
Posts: 390
I'm just going to C&P my post from IE forums, and if anyone has a definitive answer as to why and/or how to correct the problem, lemme know. Other then that any thoughts are appreciated.


I am currently doing a website http://www.wcshootfighting.com and I was having some problems with the #lines section

When I coded the section I specified a height of 2px width of 100% and used a background image that was 1pixel x 1pixel

When I previewed the page in Firefox it came out as it should, a 2pixel like spanning the length of the page. However when previewing in IE the line was considerably larger than 2px. My initial thought was for some reason IE was rendering the size of the pixels to the much larger than Firefox maybe? However the only solution I could come up with was to create overlay layers that were 2px below where the #lines started to cover the excess.

I would like to know why the line is so much bigger in IE, and why it ignores my height specifications and comes up with something completely different, and if there is an easier way to correct this (for future reference) other than creating new layers to cover up what shouldn't be there anyway.

You can view the code by going to the source of http://www.wcshootfighting.com all the CSS is contained on that page.

I have also included the code below:

/this overlays the top line/
#nav {
float:left;
position:absolute;
background-image:url(images/midline.jpg);
height:46px;
width: 100%;
top:74px;
z-index:2;
}
/this is the bottom line/
#lines2 {
position: absolute;
height: 2px;
background-image:url(images/bottomline.jpg);
width:100%;
z-index:1;
top:120px;
}
/overlay for the bottom line/
#ieoverlay {
position: absolute;
height: 50px;
background-color[:#]FFFFFF;
width:100%;
z-index:2;
top:122px;
}
/top line/
#lines {
position: absolute;
height: 2px;
background-image:url(images/bottomline.jpg);
width:100%;
z-index:1;
top:72px;
}


"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
The page looks the same in IE and FFox to me... If I could figure it out I could probably give you a pure css approach vs using an image at all in the first place wink...



Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I hate IE with a passion when it comes to CSS. 5.5, 6, 7, and coming very soon 8 all seem to render css different. 8 at least is supposed to have a standards compliant mode. Yea, we shall see.

I know there is a border line type issue that can get you up to 2 px more than you wanted in FF. say you have a box

Code
+-------+
|       |
|       |
|       |
+-------+


FF will render from within the borders the num of pixels you want.

Code
+-------+
|  ^    |
|< +    |
|       |
+-------+

arrows pointing to the inside edge of our div container



In IE, they of course like to think different, ~*cough RETARDS*~ So they render from outside the object border (even if their is no border)
Code
   +-------+
   |       |
  >|       |
   |       |
   +-------+
       ^
arrows pointing from outside into 
the inside of our div container.


This small difference can add up to 2 px difference in many layouts if not accounted for. 2px is huge. Often a work around to have cross browser compatibility is to wrap the div inside a div. Set the height width and it forces what you would expect.

Last edited by §intå×; 08/04/08 05:51 PM.
1 member likes this: JAISP

Link Copied to Clipboard
Member Spotlight
Posts: 30
Joined: June 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 7.7.5