PDA

View Full Version : Not displaying to full height in ff


harlequin2k5
03-05-2006, 04:46 AM
Once again I know I'm doing something dumb - and Aero had helped me with a similar issue previously, but it doesn't seem to want to work here

this is the page (http://test.stignatiusecc.org/logo-test-index.php) and as you can see in ie and opera the filler fills all the way down through the footer - but in ff it stops just before the >hr<

this is the entire html and css since I'm not sure where the error is

HTML<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="eng-us">
<head>
<title>Using ECC Logo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/ecc-logo-style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="main-wrap">
<div id="col-wrap">
<div id="top-nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About<br />
Us</a></li>
<li><a href="#">Our<br />
Mission</a></li>
<li><a href="#">Who Was<br />
St. Ignatius?</a></li>
<li><a href="#">Registration</a></li>
<li><a href="#">Class<br />
Rooms</a></li>
<li><a href="#">School<br />
Calendar</a></li>
<li><a href="#">Contact<br />
Us</a></li>
</ul></div><div class="clear">&nbsp;</div>
<div id="left-col">&nbsp;</div>
<div id="main-content"><h1>Welcome</h1>
<p>Thank you for your interest in St. Ignatius Early Childhood Center. We
welcome you and your children to our center located in Tarpon Springs,
Florida. We look forward to meeting with you and want to put your mind
at ease with your decision to choose St. Ignatius.</p>
<h1>Our Philosophy</h1>
<p>St. Ignatius ECC is foremost a Catholic school where two, three, four
and five year olds are given opportunities to develop spiritually, physicall,
and intellectually. Each child is a special little human being with individual
needs. St. Ignatius provides the staff, programs and environment to enhance
the growth and development of young children. To accomplish our task,
we are dedicated to the goal of providing developmentally appropriate
programs aimed at total child development.</p>
<h1>Licensing &amp; Accreditation</h1>
<p>St. Ignatius Early Childhood Center is a fully licensed facility under
the Pinellas County License Department and accredited by the prestigious
National Association for the Education of Young Children. St. Ignatius
ECC is also part of the Diocese of St. Petersburg's Office of Catholic
Schools &amp; Centers.</p>
<div id="footer"><hr />
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Mission</a></li>
<li><a href="#">Registration</a></li>
<li><a href="#">Class Rooms</a></li>
<li><a href="#">School Calendar</a></li>
<li><a href="#">Who Was St. Ignatius?</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">St. Ignatius Catholic Church</a></li>
<li><a href="#">Diocese of St. Petersburg</a></li>
<li><a href="#">Guardian Angels</a></li>
<li><a href="#">NAEYC</a></li>
</ul>
</div></div><div class="clear">&nbsp;</div>
</div>
</div>
</body>
</html>


css/* CSS Document */
body {
background-color:#536994;
text-align: center;
margin: 5px 0px;

}
#main-wrap {
font-family: Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
width: 770px;
min-height:400px;
margin-right: auto;
margin-left: auto;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-image: url(../images/bclogo-fill.jpg);
background-repeat: repeat-y;
background-color: #FFFFFF;
}
#col-wrap {
background-image: url(../images/bclogo.jpg);
background-repeat: no-repeat;
background-position: left top;
margin: 0px;
padding: 0px;
width: 770px;
min-height:400px;
}
#top-nav {
width: 650px;
padding: 0px;
text-align: right;
color: #000000;
margin: 10px 0px 0px;
float: right;
}
#top-nav ul {
width:650px;
text-decoration: none;
padding: 0px;
list-style-type: none;
margin: 0px auto;
text-align: center;

}
#top-nav li {
display:inline;
padding: 2px 0;
text-align: center;
width: 81px;
margin: 0px auto;
text-decoration: none;
float: left;

}
#top-nav ul li a:link {
display: block;
text-decoration:none;
color: #000000;
margin: 0px;
padding: 0px;
font-size: 10px;
text-align: center;
font-family: "Trebuchet MS";
}
#top-nav ul li a:visited {
display: block;
text-decoration:none;
color: #000000;
margin: 0px;
padding: 0px;
font-size: 10px;
text-align: center;
font-family: "Trebuchet MS";
}
#top-nav ul li a:hover {
display: block;
background-color:#FFB31B;
color:#000000;
text-decoration: none;
margin: 0px;
padding: 0px;
font-size: 10px;
text-align: center;
font-family: "Trebuchet MS";
}
#top-nav ul li a:active {
display: block;
background-color:#FFB31B;
color:#000000;
text-decoration: none;
margin: 0px;
padding: 0px;
font-size: 10px;
text-align: center;
font-family: "Trebuchet MS";
}
#top-nav ul li a:focus {
display: block;
background-color:#536994;
color:#000000;
text-decoration: none;
margin: 0px;
padding: 0px;
font-size: 10px;
text-align: center;
background-image: url(../images/bclogo-texturefill.jpg);
font-family: "Trebuchet MS";
}
#main-content {
width: 640px;
font-family: "Trebuchet MS";
font-size: 10px;
color: #000000;
text-decoration: none;
text-align: justify;
padding: 5px;
float: left;
margin: 80px 0px 0px;


}
#footer{
width:640px;
padding: 0px;
float: left;
margin: 0px;
}

#left-col {
margin: 80px 0px 0px;
padding: 0px;
float: left;
width: 110px;

}
h1 {
font-family: "Trebuchet MS";
font-size: 16px;
font-weight: bold;
color: #536994;
}
#footer ul {
font-family: "Trebuchet MS";
text-align: center;
margin: 0px;
padding: 0px;
width: 640px;
font-size: 10px;
}
#footer li {
display: inline;
margin: 0px;
padding: 0px;
float: left;
width: 150px;
height: 1.2em;

}
#footer li a:link {
text-decoration: none;
color: #536994;
}
#footer li a:visited {
text-decoration: none;
color: #536994;
}
#footer li a:hover {
text-decoration: underline overline;
color: #990000;
}
#footer li a:active {
text-decoration: none;
color: #536994;
}
.clear {
clear:both;
font-size:0;
line-height:0px;
}


I've tried both min-heights and clears and I can't get it to display longer

any help is greatly appreciated

NickPresta
03-05-2006, 04:59 AM
height: 100%, min-height: 100%;

harlequin2k5
03-05-2006, 05:06 AM
thanks Nick - I tried that in both the main-wrap and col-wrap div's and it didn't work - any other thoughts?

_Aerospace_Eng_
03-05-2006, 05:10 AM
Add the stuff in green. I had to take out your 5px top and bottom margin or it would be 100% height plus 10px causing an uneeded vertical scrollbar.
html, body {
background-color:#536994;
text-align: center;
margin: 0;
padding:0;
border:0;
height:100%;
}
#main-wrap {
font-family: Arial, Helvetica, sans-serif;
color: #000000;
text-decoration: none;
width: 770px;
margin-right: auto;
margin-left: auto;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
background-image: url(../images/bclogo-fill.jpg);
background-repeat: repeat-y;
background-color: #FFFFFF;
min-height:100%;
}
* html #main-wrap {
height:100%;
}

harlequin2k5
03-05-2006, 05:34 AM
thanks Aero - that gets me closer

btw...I added the 5px margin to force the vertical scroll - not all pages are going to have a scroll bar if the resolution is higher than 800x600

I made the adjustments you suggested and now what happens is that the bg image I have in the main-wrap doesn't display properly - it only displays the top portion of it

am I just being stupid? I've been at this all night and my deadline is starting to draw a lil close and my brain is completely fried...

dreamingdigital
03-05-2006, 05:40 AM
works fine for me. see attachment.

CP

harlequin2k5
03-05-2006, 05:47 AM
hmmmm

how are you viewing it? I'm using winXP 1024x768 ie6, ff 1.0.7, opera 8.5 - and I've also tried 800x600 all the way up to 1280x1024

I'm soooooo confuuuuuused *chuckles*

harlequin2k5
03-05-2006, 05:50 AM
updated ff to 1.5.0.1 and it's all good now - thanks dreamingdigital!!

NickPresta
03-05-2006, 08:20 AM
You should've added the min-height and height to the body instead. That would've solved your problem.

harlequin2k5
03-07-2006, 01:44 AM
this is not the first time I've run into this issue and I don't understand why this has to be so difficult

the bg image I want to use is 644px high and is not nearly the width of the container - if I set the min-height to 100% in col-wrap div the image displays in full in ff and opera if I set the height to 650px the image displays in full in ie and causes the text to drop below the footer in ff and opera

once again, I've tried clears and I've tried the solution that Aero provided in a previous post - I've tried clears from a previous site that used this method - I've tried the Alsett Clearing method...this is approximately 14 hours of pulling my hair out - I think now I'm just blind to the solution and I've tried to use the wrong combination of methods

while I was driving home tonight I was absolutely positive that the last time I used this method I had forced the height somehow - but when I opened the previous site I found that the right column was what forced the height to increase

this is the css

body {
background-color:#536994;
font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
font-size: 12px;
color: #000000;
text-decoration: none;
text-align: center;
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
margin-right: 0px;
margin-left: 0px;
}
#main-wrap {
width: 770px;
margin: 0 auto;
background-image: url(../images/round-bg_02.jpg);
background-repeat: repeat-y;
padding: 0px;
height: 100%;

}
#top-header {
background-image: url(../images/round-bg_01.jpg);
background-repeat: no-repeat;
height: 30px;
width: 770px;
}
#header {
background-image: url(../images/round-bg_03.jpg);
background-repeat: repeat-y;
text-align: center;
width: 770px;
height: 150px;
margin: 0px;
padding: 0px;



}
#main-content {
width: 695px;
text-align: justify;
margin-right: auto;
margin-left: auto;
padding: 0px 25px 10px;
background-position: center top;
height:100%;
min-height:650px;
}

#bottom {
height: 25px;
width: 770px;
padding: 0px;
background-image: url(../images/round-bg_04.jpg);
background-repeat: no-repeat;
margin: 0px;

}
#col-wrap {
margin: 0px;
padding: 0px;
width: 770px;
min-height:650px;
background-image: url(../images/logo2.jpg);
background-repeat: no-repeat;
background-position: center top;


}
h1 {
font-size: 16px;
color: #536994;
}
#footer {
color: #536994;
text-decoration: none;
font-weight: bold;
margin: 0px;
padding: 0px;
background-image: url(../images/round-bg_03.jpg);
background-repeat: repeat-y;



}
#top-nav {
color: #FEFCE5;
text-decoration: none;
background-color: #536994;
margin: 0px;
padding: 0px;
text-align: center;
width: 770px;

}
#top-nav ul {
text-decoration: none;
padding: 0px;
margin: 0px 0px 0px 13px;
background-color: #536994;
color: #FEFCE5;
list-style-type: none;
text-align: center;
display: inline;
float: left;
width: 746px;


}
#top-nav li {
display:inline;
margin: 0px;
padding: 0px;
text-align: center;
width: 93px;
float: left;

}
#top-nav li a:link {
color: #FEFCE5;
text-decoration:none;
margin: 0px;
padding: 0px;
display: block;


}
#top-nav li a:visited {
color: #FEFCE5;
text-decoration:none;
display: block;
margin: 0px;
padding: 0px;

}
#top-nav li a:hover {
color: #000066;
text-decoration:none;
background-color: #FEFCE5;
display: block;
margin: 0px;
padding: 0px;
border-right: 1px solid #000066;
border-left: 1px solid #000066;



}
#top-nav li a:active {
color: #000066;
text-decoration:none;
background-color: #FEFCE5;
display: block;
margin: 0px;
padding: 0px;
}
#main-content a:link {
color: #FF0000;
text-decoration: none;
}
#main-content a:visited {

color: #FF0000;
text-decoration: none;
}
#main-content a:hover {

color: #FF0000;
text-decoration: underline overline;
}
#main-content a:active {


color: #FF0000;
text-decoration: none;
}
.clear {
clear:both;
font-size:0;
line-height:0px;
}
#top-ribbon {
font-size: 12px;
color: #000066;
text-align: center;
font-variant: small-caps;
margin: 0px;
padding: 0px;


}
#main-content img {
padding: 5px;
float: left;
}


this is the html - I've only provided the html with the includes - I figure if you need more than that you can do a view source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="eng-us">
<head>
<title>St. Ignatius Early Childhood Center - Welcome</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/ecc-style-3.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- Open Main Wrap --><div id="main-wrap">
<!-- Open Top Header --><div id="top-header"><!-- --></div><!-- Close Top Header -->
<!-- Open Header --><div id="header"><img src="images/happykids3.jpg" alt="St. Ignatius Early Childhood Center Banner" title="St. Ignatius Early Childhood Center Banner" /></div><!-- Close Header -->
<!-- Open Top Navigation --><div id="top-nav"><?php include("includes/top-nav.htm"); ?>
<!-- Open Clear Style --><div class="clear"><!-- --></div><!-- Close Clear Style -->
</div><!-- Close Top Navigation --><!-- Open Top Ribbon --><div id="top-ribbon">
<p>St. Ignatius Catholic Church&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;License
#C850593&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Phone:
(727) 937-5427</p>
</div><!-- Close Top Ribbon -->
<!-- Open Column Wrap --><div id="col-wrap">
<!-- Open Main Content --><div id="main-content"><?php include("includes/welcome.htm"); ?></div>
<!-- Open Footer --><div id="footer">Footer info will go here</div><!-- Close Footer -->
<!-- Open Bottom --><div id="bottom"><!-- --></div><!-- Close Bottom -->
</div><!-- Close Column Wrap -->
</div><!-- Close Main Wrap -->

</body>
</html>


and finally - this is the page (http://test.stignatiusecc.org/main-index.php) that has the shorter length and does not display properly in ie - please notice that this page (http://test.stignatiusecc.org/ignatius.php) displays perfectly in all 3 browsers where the bg image is concerned

drhowarddrfine
03-07-2006, 02:50 AM
I don't know why I'm having trouble following this but I'll just blurt out and ask if you know IE does not interpret min-height properly?

mark87
03-07-2006, 02:54 AM
If you serve IE height instead then it treats it like min-height anyway.

harlequin2k5
03-07-2006, 03:04 AM
mark & drhoward

I'm full aware that ie does not interpret min-height properly and height is not the same as min-height - that's why I'm having trouble - I used that as an example of things that I've tried - if I was using more than 1 column I don't think this would be such an issue for me

Edit: once again aero had the answer in a different post (http://www.codingforums.com/newreply.php?do=newreply&noquote=1&p=418314)(which is so totally similar to this) - but I now understand how it works

thanks again aero!