473,769 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't get footer div to behave in IE!!

1 New Member
Hi All, I have a footer div that I can't make behave!! It has the same css as the div above it, but it won't align...I've included the pertinent css: a container that holds the entire layout, the div above the footer for reference, and the footer itself. I have the pertinent html below the css. BTW, this is only breaking in IE!! (comments added only for this post)

Thanks!!!
/* THE BODY FOR LAYOUT CENTERING */

body {
text-align:center;
background-image: url('graphics/background.gif' );
background-repeat: repeat-x;
}

/*THE OVERALL CONTAINER */
#container {
width:765px;
margin:0px auto;
text-align:left; /* to counter the centering from above */
padding:5px;
border-top: 1px solid #c2c1ba;
border-bottom: 1px solid #c2c1ba;
background-image: url('graphics/containerback2. gif');
background-repeat: repeat-y;
}
/*THE DIV ABOVE THE FOOTER (AND ITS TWO INNER DIVS)*/
#calsvt {
width:763px;
margin:0px;
background-color: #fff;
padding-top:5px;
padding-bottom: 5px;
border:1px dashed #333;
}

#calsvtleft {
width: 350px;
padding: 0;
margin: 10px;
float:left;
border:1px dashed #000;
}

#calsvtright {
width: 350px;
padding: 0;
margin: 10px;
float:right;
border:1px dashed #000;

}
/*THE FOOTER DIV THAT WON'T ALIGN: SHOWING ABOUT 2px SHORT ON THE RIGHT SIDE!*/

#footer {
width:763px;
margin:0px;
background-color: #660000;
padding-top:5px;
border:1px dashed #333;
}

#footerleft {
width: 350px;
padding: 0;
margin: 10px;
float:left;
text-align:left;
border:1px dashed #000;
}

#footerright {
width: 350px;
padding: 0;
margin: 10px;
float:right;
text-align:right;
border:1px dashed #000;
}


THE HTML:

<body>
<div id="container" >

<div id="calsvt">

<div id="calsvtleft" >
//STUFF HERE
</div> <!-- for calsvtleft -->

<div id="calsvtright ">
//STUFF HERE
</div> <!-- for calsvtright -->

<div style="clear: both;"></div>
</div> <!-- for calsvt -->


<div id="footer">

<div id="footerleft" >
//STUFF HERE
</div>

<div id="footerright ">
//STUFF HERE
</div>

<div style="clear: both;"></div>

</div> <!-- for footer -->


<div style="clear: both;"></div>
</div> <!-- for container div -->

</body>
</html>
Jan 19 '07 #1
2 1922
Motoma
3,237 Recognized Expert Specialist
Hi All, I have a footer div that I can't make behave!! It has the same css as the div above it, but it won't align...I've included the pertinent css: a container that holds the entire layout, the div above the footer for reference, and the footer itself. I have the pertinent html below the css. BTW, this is only breaking in IE!! (comments added only for this post)

Thanks!!!
/* THE BODY FOR LAYOUT CENTERING */

body {
text-align:center;
background-image: url('graphics/background.gif' );
background-repeat: repeat-x;
}

/*THE OVERALL CONTAINER */
#container {
width:765px;
margin:0px auto;
text-align:left; /* to counter the centering from above */
padding:5px;
border-top: 1px solid #c2c1ba;
border-bottom: 1px solid #c2c1ba;
background-image: url('graphics/containerback2. gif');
background-repeat: repeat-y;
}
/*THE DIV ABOVE THE FOOTER (AND ITS TWO INNER DIVS)*/
#calsvt {
width:763px;
margin:0px;
background-color: #fff;
padding-top:5px;
padding-bottom: 5px;
border:1px dashed #333;
}

#calsvtleft {
width: 350px;
padding: 0;
margin: 10px;
float:left;
border:1px dashed #000;
}

#calsvtright {
width: 350px;
padding: 0;
margin: 10px;
float:right;
border:1px dashed #000;

}
/*THE FOOTER DIV THAT WON'T ALIGN: SHOWING ABOUT 2px SHORT ON THE RIGHT SIDE!*/

#footer {
width:763px;
margin:0px;
background-color: #660000;
padding-top:5px;
border:1px dashed #333;
}

#footerleft {
width: 350px;
padding: 0;
margin: 10px;
float:left;
text-align:left;
border:1px dashed #000;
}

#footerright {
width: 350px;
padding: 0;
margin: 10px;
float:right;
text-align:right;
border:1px dashed #000;
}


THE HTML:

<body>
<div id="container" >

<div id="calsvt">

<div id="calsvtleft" >
//STUFF HERE
</div> <!-- for calsvtleft -->

<div id="calsvtright ">
//STUFF HERE
</div> <!-- for calsvtright -->

<div style="clear: both;"></div>
</div> <!-- for calsvt -->


<div id="footer">

<div id="footerleft" >
//STUFF HERE
</div>

<div id="footerright ">
//STUFF HERE
</div>

<div style="clear: both;"></div>

</div> <!-- for footer -->


<div style="clear: both;"></div>
</div> <!-- for container div -->

</body>
</html>
I'm not sure if this is the case or not, but I ran into a circumstance where IE was rendering whitespace in between cells in a table. The solution for me was to remove the lines between the elements that were not aligning correctly.
Just a shot in the dark.
Jan 19 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
Maybe I'm missing something but they look the same to me in FF, IE6 and IE7.
Jan 19 '07 #3

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

Similar topics

2
2022
by: AD. | last post by:
Hi all, I'm just playing around with some ideas for cleaning up the HTML/CSS in a web based app of ours. The intention is stop using table layouts, remove all pixel based sizes and presentational markup from the HTML. I've come up with what seems to me to be a fairly nice 3 column page that can handle variable length columns and still allow a footer. I'm just testing the structure, don't worry this isn't what it will actually look...
0
1253
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
0
953
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
2
9272
by: LilBuh | last post by:
hi there :) i ve been looking for some time a way to print an html file from vb.net i came up with this code for printing and removing the header and footer from IE then once the printing is done restore the original header and footer Imports Microsoft.Win32 Private WithEvents myprocess As Process Private OldHeader As String
1
1523
by: commanderjason | last post by:
Im trying to drag links into my c# windows app. my code is pretty straitforward for this test private void Form1_DragEnter(object sender, DragEventArgs e) { e.Effect = DragDropEffects.All; }
1
1429
by: Joao | last post by:
Hello, I have a webpage in my intranet where users can get and print reports. I need a way to supress the header and footer that IE puts when you print a page. This must happen without the users action. It must be automatically. Thanks
11
16584
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. So my header div is defined at top:0; height:40px , my footer is defined as bottom:0; height:40px and the content is defined as top:40px;bottom:40px; This works very well with firefox but doesn't work with IE, as IE ignores the bottom statement...
0
1611
by: R.Nijkamp | last post by:
Hello, i was wondering if its an limitation of IE when a asp.net listbox is set disabled, then a user wont be able to scroll inside the listbox. While the user can scroll inside the listbox when he uses firefox. Below a simple code which i tested: <form id="Form1" runat="server"> <asp:ListBox id="drop1" rows="3" runat="server" disabled>
0
1846
by: gsuns82 | last post by:
Hi all, I am trying to prevent my jsp page from being cached,i gave the following code suggested in net in my jsp page,but still browser able to cache the jsp page.... The code tat i gave::: ************************ response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); any idea regarding this crisis??????
0
5324
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string footer = null; object o = null; InternetExplorerClass ie = null;
0
9423
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
10049
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
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3964
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
2
3564
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.