PDA

View Full Version : Jumping footer- Boing!


sebrown00
06-13-2009, 01:42 AM
I finally got my site up live so you guys will know what the heck i'm gabbing about. I have two questions and I'll post them in two different threads. My site is sbrownarchitects.com.

Please note the footing on my site. Although it is farly regular on my template it seems to jump around on each page. I would like the bottom of the page to be formed by my images. How do I fix this.

I've posted my code below. Is there an easier way to do this? I recieved a response in a previous thread about using the "advanced editor" but I can't seem to find it. And help isn't helping.

Thanks again!

Ps- Question regarding links to follow

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/SBrown Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-color: #CCC;
}
.thrColLiqHdr #container {
width: 80%; /* this will create a container 80% of the browser width */
background: #666;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.navigation {
font-family: Verdana, Geneva, sans-serif;
font-size: 18px;
font-style: normal;
color: #333;
text-decoration: none;
font-weight: bold;
}
.thrColLiqHdr #header {
background: #DDDDDD;
padding: 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.thrColLiqHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
/* Tips for sidebars:
1. Since we are working in percentages, it's best not to use side padding on the sidebars. It will be added to the width for standards compliant browsers creating an unknown actual width.
2. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColLiqHdr #sidebar1 p" rule.
3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
*/
.thrColLiqHdr #sidebar1 {
float: left; /* this element must precede in the source order any element you would like it be positioned next to */
width: 22%; /* since this element is floated, a width must be given */
background: #F90; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 5px 0; /* top and bottom padding create visual space within this div */
}
.thrColLiqHdr #sidebar2 {
float: right; /* this element must precede in the source order any element you would like it be positioned next to */
width: 45%; /* since this element is floated, a width must be given */
background: #666; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 5px 0; /* top and bottom padding create visual space within this div */
}
.thrColLiqHdr #sidebar1 p, .thrColLiqHdr #sidebar1 h3, .thrColLiqHdr #sidebar2 p, .thrColLiqHdr #sidebar2 h3 {
margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
margin-right: 10px;
}
/* Tips for mainContent:
1. the space between the mainContent and sidebars is created with the left and right margins on the mainContent div.
2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 300px or smaller (this includes images).
3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
*/
.thrColLiqHdr #mainContent {
margin: 0 10% 0 28%; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
}
.thrColLiqHdr #footer {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#666;
}
.thrColLiqHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain its child floats */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 { padding-top: 30px; }
.thrColLiqHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>
<body class="thrColLiqHdr">
<div id="container">
<div id="sidebar1">
<h3><a href="index.html" class="navigation">Home</a></h3>
<h3><a href="about.html" class="navigation">About</a></h3>
<h3><a href="Portfolio.html" class="navigation">Work</a></h3>
<h3><a href="people.html" class="navigation">People</a></h3>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>646-244-5870</strong> </p>
<p><strong> sbrownarch@gmail.com </strong></p>
<h5>&nbsp;</h5>
<p>&nbsp;</p>
</div>
<!-- InstanceBeginEditable name="text" -->
<div id="sidebar2">
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
<h1>S. Brown Architects </h1>
<h4>Architecture-Interior Design</h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="images" -->
<div id="mainContent">
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<!-- InstanceEndEditable -->
<div id="footer">
<p><img src="images/webimages/thumbnails/COMPRESSED/monticelloblackandwhite.jpg" width="130" height="118" /><img src="images/webimages/thumbnails/COMPRESSED/shakerblackandwhite.jpg" width="105" height="118" /><img src="images/webimages/thumbnails/COMPRESSED/tagblackandperspect1.jpg" width="148" height="118" /><img src="images/webimages/thumbnails/COMPRESSED/fieldstonblackandwhite.jpg" width="225" height="118" /><img src="images/webimages/thumbnails/COMPRESSED/tagelevblackandwhiteco.jpg" width="155" height="118" /><img src="images/webimages/thumbnails/COMPRESSED/PORTFOLIO/klismos1.jpg" width="90" height="118" />
<!-- end #footer -->
</p></div>
<!-- end #container --></div>
</body>
<!-- InstanceEnd --></html>

edbr
06-13-2009, 02:07 AM
the pages are different lose all the
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p> and replace it with text even while you are testing
check your links as i said they are not consistent if you want to use a template make this part of the template.
also at the bottom of one page you have .navigation{} after the closing </html tag, delete it

sebrown00
06-13-2009, 02:28 AM
I am getting rid of those <p>&nbsp's, but then how do I make blank rows between the navigation bar and email address and extending the sidebar? Sorry, I'm really new at this?

And, thanks for the heads up about the navigation...ill delete that.

edbr
06-13-2009, 02:52 AM
add text where there will be text eventually,
you could use lorem (see below), if you don't have your content ready yet.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.</p>
<h2>H2 level heading </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.

it helps you see your text formatting trying <p> <h1> <h3> etc

edbr
06-13-2009, 02:54 AM
as for thee mail link it should be positioned with margins , but you are using a mailto link that will get you a lot of spam as the web is crawled by bots looking for these type of links.

sebrown00
06-13-2009, 03:14 AM
I have my text ready for the sidebar. It is the text that appears in the sidebar. "Home" "About" "Work" "People" a phone number and email address. It will not change.

If i were to get rid of the <p>&nbsp;</p>, all of the spaces and blank lines disappear between "people" and the phone number. What do i use to get those blank lines back, plus then my sidebar shortens.

edbr
06-13-2009, 03:21 AM
assign a class to the link
in your style add .margin{margin-top:50px;}//change 50px to your choice
and put the email in as <div class="margin">Email(your content)</div>