473,804 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Internet Explorer the root of all evil!

Death Slaught
1,137 Top Contributor
As usual everything looks great in Opera and FF. I test my page in IE, and hell is unleashed.

A giant space on the right side of the screen appears and this is shoving my anchors all the way with it. Everything else stays within the wrapper division and doesn't even move a pixel.

~XHTML~

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>Faded Twilight : Home
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet " type="text/css" href="Styles/style-main.css" />
</head>

<body>

<div id="tgnav">
<a href="#">Home |
<a href="#">Games |
<a href="#">IRC |
<a href="#">Downlo ads |
<a href="#">Admini stration
</div>

<div id="wrapper">

<div id="top">
<img src="Styles/Images/Logo6.png" alt="Faded Twilight" id="logo" />
<div id="navagation" >
<a href="#">Home
<a href="#">Forums
<a href="#">Chat
<a href="#">Downlo ads
<a href="#">Update s
</div>
</div>

<div id="contents">
<div id="login">
</div>
</div>

</div>

</body>

</html>[/HTML]


~CSS~

Expand|Select|Wrap|Line Numbers
  1. * {
  2.   margin:0;
  3.   padding:0;
  4. }
  5.  
  6. body {
  7.   background-color:#000;
  8.   background-image: url('Images/main-background.jpg');
  9.   font-size:small;
  10.   margin-top:30px;
  11.   margin-bottom:30px;
  12. }
  13.  
  14. div#tgnav {
  15.   width:100%;
  16.   text-align:center;
  17.   position:absolute;
  18.   top:5px;
  19.   color:#E00000;
  20. }
  21.  
  22. div#tgnav a {
  23.   color:#FFF;
  24.   font-size:16px;
  25. }
  26.  
  27. div#wrapper {
  28.   width:600px;
  29.   margin:0 auto;
  30.   overflow:auto;
  31.   background-image: url('Images/Background2.png');
  32. }
  33.  
  34. div#wrapper div#top {
  35.   width:600px;
  36.   height:auto;
  37. }
  38.  
  39. div#wrapper div#top img#logo {
  40.   vertical-align:bottom;
  41. }
  42.  
  43. div#wrapper div#top div#navagation {
  44.   width:600px;
  45.   height:auto;
  46.   text-align:center;
  47.   position:absolute;
  48.   top:154px;
  49.   padding-top:0.3em;
  50.   padding-bottom:0.3em;
  51. }
  52.  
  53. div#wrapper div#top div#navagation ul {
  54.   width:600px;
  55.   list-style-type:none;
  56.   position:absolute;
  57.   top:154px;
  58.   padding-top:0.3em;
  59.   padding-bottom:0.3em;
  60. }
  61.  
  62. div#wrapper div#top div#navagation li {
  63.   display:inline;
  64. }
  65.  
  66. div#wrapper div#top div#navagation a {
  67.   text-decoration:none;
  68.   padding:0.2em 0.8em;
  69.   font-size:15px;
  70.   color:#800080;
  71.   border:1px solid #FFF;
  72. }
  73.  
  74. div#wrapper div#contents {
  75.   width:600px;
  76.   height:500px;
  77. }
I can't figure out what is happening. Everything has a set width that matches the containers width so nothing should be leaving it. Then again the navagation division is absolutely positioned completely removing it from the normal flow of the page, but that shouldn't cause this?

Thanks, Death
Apr 14 '08 #1
13 1771
drhowarddrfine
7,435 Recognized Expert Expert
Validate for your list of xhtml errors that need fixing.

IE screws up font sizes set with small-large-etc. To get IE into line, in the body set 'font-size:100%'.

See what happens then.
Apr 14 '08 #2
Death Slaught
1,137 Top Contributor
What?!?!?! My code doesn't have any errors, at least the copy of it I have doesn't. Surely you wouldn't assume that me of all people would omit the end tag for the title elements, and anchors? My end tags were quite rudely ripped off of my code when it was being posted...

I'll be sure to try that, and Thanks, Death
Apr 14 '08 #3
Death Slaught
1,137 Top Contributor
I tried it and nothing. Just out of curiousity, how can font size cause something like this, and this? When it's supposed to look like this (I'm still working on the images for the links, incase you were wondering why they look so crapy).

Thanks, Death
Apr 14 '08 #4
drhowarddrfine
7,435 Recognized Expert Expert
Just out of curiousity, how can font size cause something like
I'm just sayin'....

I didn't put an image in so it might have something to do with that. I'll try and look in a bit.

EDIT: On second thought, the problem was there before and I didn't see it.
Apr 14 '08 #5
Death Slaught
1,137 Top Contributor
Thanks, I've never seen anything like this before, and it confuzzles me.

Here's an interesting thought. When I reduce the navagation divisions width to 1px, the anchors are perfectly centered and it doesn't affect it cross browser. However, the gap is still there and that messes up my top navagation aswell.

Thanks, Death

EDIT : If you want the actual file, images and all, let me know.
Apr 14 '08 #6
drhowarddrfine
7,435 Recognized Expert Expert
I'm floating around today and don't have access to Windows. I couldn't immediately see what the heck IE was doing. Maybe later tonight.
Apr 15 '08 #7
Death Slaught
1,137 Top Contributor
It's fine take you time, I'm not really in a rush to get it figured out.

Thanks, Death
Apr 15 '08 #8
Plater
7,872 Recognized Expert Expert
How about this:
(NOTE: I threw in some horrible background colors so you could see just where your DIVs were, you can remove them)
Expand|Select|Wrap|Line Numbers
  1. * {
  2.   margin:0;
  3.   padding:0;
  4. }
  5.  
  6. body {
  7.   background-color:#000;
  8.   background-image: url('Images/main-background.jpg');
  9.   font-size:small;
  10.   margin-top:30px;
  11.   margin-bottom:30px;
  12. }
  13.  
  14. div#tgnav {
  15.   width:100%;
  16.   text-align:center;
  17.   position: absolute;
  18.   top:5px;
  19.   left:0px;
  20.   color:#E00000;
  21. }
  22.  
  23. div#tgnav a {
  24.   color:#FFF;
  25.   font-size:16px;
  26. }
  27.  
  28. div#wrapper {
  29. background-color:green;
  30. text-align:center;
  31.   width:600px;
  32.   margin:0 auto;
  33.   overflow:auto;
  34.  
  35.   left:0px;
  36.   background-image: url('Images/Background2.png');
  37. }
  38.  
  39. div#wrapper div#top {
  40. text-align:center;
  41.   width:600px;
  42.   height:auto;
  43.   left:0px;
  44.   background-color:yellow;
  45. }
  46.  
  47. div#wrapper div#top img#logo {
  48.   vertical-align:bottom;
  49. }
  50.  
  51. div#navagation {
  52.  
  53.   width:600px;
  54.   height:auto;
  55.   text-align:center;
  56.  
  57.   background-color:red;
  58.   padding-top:0.3em;
  59.   padding-bottom:0.3em;
  60. }
  61.  
  62. div#wrapper div#top div#navagation ul {
  63.   width:600px;
  64.   list-style-type:none;
  65.   position:absolute;
  66.   top:154px;
  67.   padding-top:0.3em;
  68.   padding-bottom:0.3em;
  69. }
  70.  
  71. div#wrapper div#top div#navagation li {
  72.   display:inline;
  73. }
  74.  
  75. div#wrapper div#top div#navagation a {
  76.   text-decoration:none;
  77.   padding:0.2em 0.8em;
  78.   font-size:15px;
  79.   color:#800080;
  80.   border:1px solid #FFF;
  81. }
  82.  
  83. div#wrapper div#contents {
  84.   width:600px;
  85.   height:500px;
  86. }
  87.  
If i understood your layout correctly, the logo IMG will push the navigation div down on it's own, so need to make that DIV position: absolute. I also threw in a left:0px to make that upper nav bar center correctly.
Apr 15 '08 #9
Death Slaught
1,137 Top Contributor
lol, you have no idea how funny it makes the layout look with those divisions (of course the images are added when I view it).

I want the navagation to be ontop of the image that's why it's positioned absolutely. Thanks for trying though.

Thanks, Death
Apr 15 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2680
by: Raymond H. | last post by:
Hello, I create a vb4 project which can also naviger on Internet via the WebBrowser control which I put on my form. My question is: if this program is installed on a station having already Internet Explorer in it then will it cause an error if version Internet Explorer is the same one as WebBrowser which is in my project? Is it this control which Internet Explorer uses? If that can cause errors of version then, instead, can I install this...
5
16839
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true and no files are deleted in the folder. The peculiarity of this issue is that the files/subfolders cannot be seen through the windows explorer either. I can only access/delete them through a command shell. Any ideas?
2
2297
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet Explorer cannot open the internet site "XXXXX" Operation aborted" this happens when they click on a menu item to open a page. they do not get
2
6626
by: Ofer Lavi | last post by:
Hi, I am trying to build an activeX that, if missing, will be downloaded and setup automatically on the client's browser (internet explorer). Using VB6, it was easy, using the <Object> tag, the classid attribute for its reference, and the codebase attribute for its .cab file. Now, I am using vb.net. I managed to create the object (using ComClass<...> and ClassId, InterfaceId and EventsId.
21
11762
by: Joe Attardi | last post by:
Hey all! I was reading over at the IE Blog the other day http://http://blogs.msdn.com/ie/] and read some interesting, and encouraging news. According to Sunava Dutta, an IE Program Manager, starting in IE7 XMLHttpRequest will be a plain JavaScript object. It will still include the Microsoft.XMLHTTP ActiveX component for compatibility, but IMHO this is a very good shift for IE. What do you think?
3
2356
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review interpretation): "Half stolen from Firefox, half is buggy - including the stolen part". Download: <http://www.download.com/Internet-Explorer-7/3000-2356_4-10497433.html?tag=nl.e415>
11
11628
by: Wendy | last post by:
Hello, I have a program that does the following: When a user clicks on a row in a VB.NET datagrid, it will open a web page in Internet Explorer (that corresponds to that item in the selected row in the datagrid). It will automatically print that web page, and then it will close the Internet Explorer window. I have code that works perfectly when a regular web page is opened, however when a pdf web page is opened the printing never...
4
1543
by: Bob | last post by:
I'm just starting PHP and MySQL - and really like the book by Welling and Thomsom. I've installed MySQL on my WinXP desktop, along with Apache and PHP. I have not figured out how to set a password for the root account. I've been able to set up a user account for myself, with a password, but not the root account. I understand this is not ideal. I've tried setting the password in My.ini but it doesn't seem to work. I must be doing...
37
6358
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window, without getting a alert message that ask if u want to close the window. This did NOT happen in Internet Explorer 6, Mozilla firefox or other browsers.
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.