Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-03-2008, 02:13 AM
ewwatson's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default My copyright right moves slightly from page to page?

Alright... I give up on this one. The copyright moves up and down by a pixel or two between different pages. Go from the Home page to the Diabetes page and look at the footer and you will see. I have tried changing the margins, padding, and line-height on the text in the footer. I can get it to temporarily work but as soon as I change anything above the copyright (i.e. in the #content div) like line-height, add text, and etc it moves the copyright between pages again. Basically the content div is pushing down on the copyright differently depending on the amount of text that is in the article. Because other than the text all the articles pages code is exactly the same. All the footer text is a PHP include if that makes a difference. Thanks for looking at it because I have been working on this for quite a few days now and it is buggin the ba-jesus out of me?

I have a theory, the footer (thats where the copyright is) is absolute positioned. Therefore it is taken out of the flow of the document. Could this be the cause of my problem? So if I were to place all the copyright and footer links within another div within the footer div would that bring those back into flow? Like if I gave that new div a position of static or something? Or is it out of the flow regardless because it's sitting inside of an absolute positioned div? Thanks a lot - here is the site in question

LITTLEABOUTALOT.com
__________________
Knowledge Is Power
www.DiscountSiteDesign.com
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 09:10 AM
zumojuice's Avatar
100% Freshly Squeezed™
 
Join Date: Feb 2007
Location: York
Gender: Male
Posts: 2,873
Default

To me, a movement like that would not be noticable unless I was looking for mistakes or someone pointed it out. I admit it must be annoying for you. Hang in there, there are some great CSS people around here, sadly I am not one of them.
__________________
Richard Gray
http://www.zumojuice.me.uk
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 11:27 AM
ewwatson's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

Hi, I just found out it's only a firefox issue. In all the others the copyright does not move.
__________________
Knowledge Is Power
www.DiscountSiteDesign.com
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 11-03-2008, 02:42 PM
zumojuice's Avatar
100% Freshly Squeezed™
 
Join Date: Feb 2007
Location: York
Gender: Male
Posts: 2,873
Default

Figures....Though might be better in the latest firefox.
__________________
Richard Gray
http://www.zumojuice.me.uk
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 12-03-2008, 01:52 AM
ewwatson's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

O-MY-GOD, I am going crazy! I just sat here for the last hour trying every different possible solution - nothing worked. I tried changing everything to absolute measurements, I tried placing it in another div within the footer div and giving it every different position, I tried taking the margin bottom away from the content div and putting another div above the footer of same height, I tried every different combination of line-height/padding/margin/negative margin in combo with padding, margin, and line-height. Nothing worked cross article.

The only thing they all have in common (the common being something changing the height of the copyright) is something above the copyright in the content div. That is where the problem lies. Unfortunately, I can find no differences between the articles - because there is none - the code is the exactle the same. UGH!

So basically I think I am focusing on changing something with the copyright, but the copyright is the effect not the cause.
__________________
Knowledge Is Power
www.DiscountSiteDesign.com
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 13-03-2008, 10:44 AM
ewwatson's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

I branched out - this problem now lives in eight different forums, and no body can find a solution. Here is what we have narrowed it down to now. It is most likely a rounding error, however, the copyright only moves when there is enough content to exceed the 100% min-height.

SuzyUK from over at WebMasterWorld Forum has been so kind, and really did some digging into the code. She did not find the solution but she did give me this - which is - a simplified working version, that recreates the problem with a minimal amount of code to trouble shoot. Hopefully this helps some one help me find a solution.

Here is SuzyUK code and part of what she said.
What I do know:
it only happens on pages with enough content to exceed the 100% min-height. The footer and paragraph themselves does not move it is simply the vertical-alignment of the text.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Short Page</title>
<style type="text/css">
<!--
html, body {margin: 0; padding: 0; height: 100%;}
body {
/*font: 62.5%/1 "Times New Roman", Times, serif;*/
font: 12px arial, serif;
background-color: #fff;
color: #333;
}
#wrapper {
position: relative;
z-index: 1;
min-height: 100%;
border: 1px solid #000;
background: #ffc;
}
#content {
margin: 0px 150px 50px 150px;
line-height: 1.4;
/*line-height: 1.5;*/
}
#footer {
position: absolute;
z-index: 2;
bottom: 0px;
left: 0px;
width: 788px;
width: 90%;
background-color: #abc;
text-align: center;
line-height: 1.5;
}
#footer p {
background: #fff;
margin: 5px 10px;
padding: 0;
}
-->
</style>

</head>
<body>
<div id="wrapper">
<div id="content">
Diabetes, as it relates to blood sugar <br>
</div>
<div id="footer">
<p>some footer text</p>
</div>
</div>
</body>
</html>

To create the longer page, repeat the line in red approximately 32+ times - might need a few more. Now with 2 different pages open (1 long 1 short), click back and forth and look at the footer text - you will see it move.
__________________
Knowledge Is Power
www.DiscountSiteDesign.com
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 14-03-2008, 01:44 AM
ewwatson's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

Alright!!! Overflow auto on the footer and I gave the footer an em based height - that kept the vertical scroll bar away when you increase the text size. Done! Fixed!

I have to give SuzyUK (over at web master world) her credit though - I could not have done it with out her. We went back and forth 44 times.
footer text moves slightly from page to page?
__________________
Knowledge Is Power
www.DiscountSiteDesign.com
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web page Logo PolarBear Graphic Design & Web Design Critique 17 10-03-2008 07:45 AM
need web page the ny lady Design Forum Employment 18 26-01-2008 03:38 PM
New validator page Toon General Web Design Forum 9 16-08-2007 08:48 AM
Simple page fedemorilla Great Graphic Design 5 14-04-2007 11:58 PM
1st css page Toon CSS Forum 4 11-01-2007 09:05 PM


All times are GMT. The time now is 09:58 AM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5