473,748 Members | 2,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS problem with footer

Hi,

I'm creating a template paging sing pure CSS and all looks good except
the footer which I am having problems with.

1) When I space out each of the FOUR DIVS at 25%, it wraps in IE. I
hacked it by changing to 24% but don;t know why.

2) I can't get the right border to extend down to the bottom border
(both IE and Firefox).

The page can be seen at: https://testbed.odysseyshipping.com

The section is contained within:
<div id="footer">
.....
</div>

I don't know if you can view the CSS but if not, I am listing below:

body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, Verdana, sans-serif;
font-size: small;
background-color: #FFFFFF;
color: #000000;
}

#wrapper {
margin: 5px;
padding: 0;
background-color: white;
color: black;
border: thin solid #2a78c3;
}

#header {
margin: 0;
padding: 0;
}

#header_logo {
width: 100%;
margin: 0;
padding: 0;
float: left;
list-style: none;
background-image: url(../images/title_bar_right .gif);
background-position: top right;
background-repeat: no-repeat;
}

#header_logo:af ter {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html #header_logo { height: 1%; } /* for IE5+6 */
*:first-child+html #header_logo { min-height: 1px; } /* for IE7 */

..header_logo_i mage {
float: left;
margin: 0;
padding: 0;
}

#header_menubar {
width: 100%;
margin: 0;
padding: 0;
float: left;
list-style: none;
background-image: url(../images/menurest.jpg);
background-repeat: repeat-x;
}

#header_menubar :after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html #header_menubar { height: 1%; } /* for IE5+6 */
*:first-child+html #header_menubar { min-height: 1px; } /* for IE7 */

..header_menuba r_image {
float: left;
margin: 0;
padding: 0;
}

#menuback {
width: 200px;
height: 31px;
}

#left_sidebar {
float: left;
width: 18%;
border-right: thin solid #2a78c3;
border-bottom: thin solid #2a78c3;
}

#left_sidebar:a fter {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html #left_sidebar { height: 1%; } /* for IE5+6 */
*:first-child+html #left_sidebar { min-height: 1px; } /* for IE7 */

#left_sidebar_h eader {
background-image: url(../images/menurest.jpg);
background-repeat: repeat-x;
padding: 5px 5px 15px 5px;
color: white;
font-weight: bold;
text-align: center;
vertical-align: middle;
}
* html #left_sidebar_h eader { padding-bottom: 5px; } /* for IE5+6 */
*:first-child+html #left_sidebar_h eader { padding-bottom: 5px; } /*
for IE7 */

#left_sidebar_f orm_wrapper {
margin-bottom: 20px;
padding-left: 3px;
padding-right: 3px;
}

#username_capti on {
color: #003366;
}

#username_input {
padding-bottom: 5px;
}

#password_capti on {
color: #003366;
}

#password_input {
padding-bottom: 5px;
}

#remember_passw ord {
float: left;
padding-bottom: 5px;
}

#remember_passw ord:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html #remember_passw ord { height: 1%; } /* for IE5+6 */
*:first-child+html #remember_passw ord { min-height: 1px; } /* for IE7
*/

#remember_check box {
float: left;
}

#remember_capti on {
float: left;
padding-left: 5px;
font-size: 85%;
}

#login_button {
padding-left: 10px;
padding-bottom: 20px;
}

#forgotten_pass word_caption {
padding-bottom: 20px;
color: #993300;
font-size: 110%;
font-weight: bold;
}

#new_account_ca ption {
color: #993300;
font-size: 110%;
font-weight: bold;
}

#footer {
padding: 0;
margin: 0;
}

#footer_headers {
margin: 0;
padding: 0;
height: 2em;
padding-top: 2px;
list-style: none;
background-image: url(../images/menurest.jpg);
background-repeat: repeat;
color: white;
font-weight: bold;
}

#footer_headers li {
float: left;
width: 24%;
padding-left: 1%;
}

#footer_links {
margin: 0;
height: 5.5em;
color: #993300;
}
* html #footer_links { height: 5em; } /* for IE5+6 */
*:first-child+html #footer_links { height: 5em; } /* for IE7 */

#footer_links ul {
list-style-image: url(../images/acc_arrow.gif);
}

#our_company_li nks {
float: left;
width: 24%;
padding-top: 5px;
border-right: thin solid #2a78c3;
}

#vessel_schedul es_links {
float: left;
width: 24%;
padding-top: 5px;
border-right: thin solid #2a78c3;
}

#make_a_booking _links {
float: left;
width: 24%;
padding-top: 5px;
border-right: thin solid #2a78c3;
}

#rate_request_l inks {
float: left;
width: 24%;
padding-top: 5px;
}
Jun 27 '08 #1
1 2082
In article
<f8************ *************** *******@d45g200 0hsc.googlegrou ps.com>,
donpro <do*********@ro gers.comwrote:
Hi,

I'm creating a template paging sing pure CSS and all looks good except
the footer which I am having problems with.

1) When I space out each of the FOUR DIVS at 25%, it wraps in IE. I
hacked it by changing to 24% but don;t know why.

2) I can't get the right border to extend down to the bottom border
(both IE and Firefox).

The page can be seen at: https://testbed.odysseyshipping.com
1) You run out of room (even on my FF) because of your padding:

width: 25%;
padding-left: 1px;

So you do

#footer_headers li {
float: left;
width: 24%;
padding-left: 1%;
}

but you could

width: 25%;
padding-left: 0;

But your strategy is probably safest! The way widths are calculated is
not intuitive! Plus, in IE 6, there are float bugs which add pixels to
distance floats in some circumstances.

2) It extends fine when the browser widow is wide enough to view your
content comfortably. When not, the pic drops and then that border is
blocked. That pic of 660px wide is a bit big to have in this design!
Consider using it as a background image. Or experiment with letting it
resize with the element by percentage dimensioning it. Think more about
making your page comfortable in 800px wide browser windows.

--
dorayme
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2895
by: Xavier Onassis | last post by:
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in Mozilla/Firefox. Success so far only with IE. In Mozilla/Firefox, the layout does not adjust when nodes are inserted into the document dynamically. Layout: H E A D E R COL1 COL2
7
4540
by: Darin | last post by:
I have a report that sub-totals on a group, then grand-totals at the report footer. If there's only one group, the sub-total and grand total are redundant, so I only want to show one of them. I know how to count the groups, then hide the report footer if there's only one group, but my problem is I want to hide the group footer (sub-total), not the report footer (because the report footer references what the grand total is for, which is...
4
3228
by: Neri | last post by:
Some document processing program I write has to deal with documents that have headers and footers that are unnecessary for the main processing part. Therefore, I'm using a regular expression to go over each document, find out if it contains a header and/or a footer and extract only the main content part. The headers and the footers have no specific format and I have to detect and remove them using a list of strings that may appear as...
6
2189
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label on the footer. At the moment, I go through the dataListItems like so: for each oItem as DataListItem in DataList1.Items trace.warn("inside for loop oItem type = " & oItem.itemType.ToString())
0
1908
by: LilBuh | last post by:
Hello :) this is a repost... i ve been looking for a way since last week ... i have a template html file that i modify from my code... i need to print this file without IE's Header and Footer or any print dialog then once the printing's done... restore the original Header and footer but here's what happens: - save the current header and footer
7
4472
by: Chris Nelson | last post by:
I'm new to the positioning aspects of CSS and I'm going crazy trying to do something that seems like it should be fairly easy. I've Googled all over and read CSS tutorials and not found an answer. I want to divide my screen/page into four areas: a header, a footer, a menu area, and content. The particular layout I'm trying to accomplish is to have the header, menu area, and footer stacked on the left and the content as a full-height...
6
2258
mikeinspain
by: mikeinspain | last post by:
Hi Guys.. Hope someone can help. I have a problem with a particular page on one of the sites I am developing. The page is here: http://tagwealth.co.uk/contact/. The pages renders fine in Safari and Firefox, but it gets shunted to the left of the screen in IE. The CSS for the page is below.. /******************************************** HTML ELEMENTS
0
2705
by: gnewsgroup | last post by:
Well, I am trying to use the footer row of a GridView for insertion purpose. There are some articles about this, for example, the gridviewguy.com has an example, which always displays the footer row. I would like to display the footer row, only when a LinkButton "Add New" is clicked. And after the new record is saved to the database, let the footer row disappear. In the LinkButton's click event handler, I simply say:
3
3963
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not sure if it's something that I am doing wrong or maybe the repeater control doesn't have the capabilities...? The page needs to display a custom number of sections that appear the same but have different data..
10
6975
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9254
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
8252
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
6799
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
6078
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
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
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
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
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.