![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#51 |
|
Programmer
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0
![]() |
I made the header and footer fixed. Actually the footer was already fixed by iignotus, but I made the header fixed as well. I'm running 1280x1024 resolution, so the fixed header and footer only make a difference on the front page. I don't think I like it very much. This is all in firefox of course. I didn't think of a doctype. I added one now, but it didn't fix the problems in IE. The downloads page is the page I majorly changed the code on. The pictures page gives me real bad problems in IE.
http://www.farsideofthegalaxy.com/downloads/ http://www.farsideofthegalaxy.com/pictures/ pictures page -- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Far Side of the Galaxy - Pictures</title>
<?php include("../styles.php"); ?>
</head>
<body>
<?php include("../links.php"); ?>
<br>
<center>
<a href="/pictures/age3/view.php">Age of Empires III Screenshots</a>
<br>
<br>
<a href="/pictures/missiontrip2k5/view.php">Class Missions Trip 2005</a>
<br>
<br>
<a href="/pictures/cod2/view.php">Call of Duty 2 Screenshots</a>
<?php include("../footer.php"); ?>
</body>
</html>Sorry I posted this as quickly as possible. The style sheet is incredibly long. Can I attach it instead of quote it? EDIT: attached the css template. I think that's the updated one.
__________________
"I have many layer-eight problems in my life, including myself." |
|
|
|
|
|
#52 | |
|
Professional Programmer
|
Quote:
And guess what, he's using my fix on his stylesheet right now it and looks perfect. You have no purpose on this website. Leave.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
|
#53 | |
|
Hobbyist Programmer
|
Quote:
|
|
|
|
|
|
|
#54 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You're merely illustrating the point I raised in the very first response -- the "end of the page" is a matter of definition. If you define it as the "bottom of the window" you've got some work ahead of you, given the variance in resolutions and the client's ability to resize the window both vertically and horizontally. If you define it as the end of content, the task is easier. One makes one's decisions and designs appropriately. That presumes, of course, that one has a clue. One can always design with hacks and ugliness and cost and inefficiency. Such a one should be prepared to queue up in the unemployment line, presuming the ability to avoid being committed to an institution for the insane or terminally stupid.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#55 |
|
Programmer
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0
![]() |
Well I have some more time on my hands now to look into this farther. I'm not sure why the css fix that iignotus gave me works in firefox but not on IE. I added the doctype like DaWei suggested and that worked perfectly. Atleast for the downloads page. The pictures page still shows the footer in the middle of the page in IE. Maybe the fixed property of the footer is something you just get used to. I tried fixing the header as well, but that screwed some spacing up. Not sure why, but what's on my site now is the current code. Here's the downloads page code and pictures page code along with the updated css style sheet.
pictures page -- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Far Side of the Galaxy - Pictures</title>
<?php include("../styles.php"); ?>
</head>
<body>
<?php include("../links.php"); ?>
<br>
<center>
<a href="/pictures/age3/view.php">Age of Empires III Screenshots</a>
<br>
<br>
<a href="/pictures/missiontrip2k5/view.php">Class Missions Trip 2005</a>
<br>
<br>
<a href="/pictures/cod2/view.php">Call of Duty 2 Screenshots</a>
<?php include("../footer.php"); ?>
</body>
</html>downloads page -- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<style type="text/css">
.cbi
{
text-align: center;
}
</style>
<head>
<title>The Far Side of the Galaxy - Downloads</title>
<?php include("../styles.php"); ?>
</head>
<body>
<?php include("../links.php"); ?>
<div style="width: 45%; float:right; border: 0px solid #ffffff; padding: 10px;">
<h1 align="center">Ad-Aware SE Personal</h1>
<p class=cbi><a href="/downloads/aawsepersonal.exe"><img src="/pictures/adawarelogo.gif" border=0></a></p>
<h1 align="center">iTunes</h1>
<p class=cbi><a href="/downloads/iTunesSetup.exe"><img src="/pictures/ituneslogo.jpg" border=0></a></p>
<h1 align="center">Putty</h1>
<p class=cbi><a href="/downloads/putty.exe"><img src="/pictures/putty.jpg" border=0></a></p>
<h1 align="center">D$ Clan Video</h1>
<p class=cbi><a href="/downloads/darksidevideo.wmv"><img src="/pictures/darksidelogo.jpg" border=0></a></p>
<h1 align="center">Star Wars Gaming Parody</h1>
<p class=cbi><a href="/downloads/starwarssub.wmv"><img src="/pictures/starwars.jpg" border=0></a></p>
</div>
<div style="width: 45%; float:left; border: 0px solid #ffffff; padding: 10px;">
<h1 align="center">Star Wars Late Night Show</h1>
<p class=cbi><a href="/downloads/ROFL.STARWARS.NERDS.wmv"><img src="/pictures/starwars.jpg" border=0></a>
<h1 align="center">Battlefield 2 1.03 Patch</h1>
<p class=cbi><a href="/downloads/bf2_patch_103.exe"><img src="/pictures/bf2logo.jpg" border=0></a></p>
<h1 align="center">CoD2 Demo German MOD</h1>
<p class=cbi><a href="/downloads/CoD2_German_Demo_mod.zip"><img src="/pictures/cod2icon.gif" border=0></a></p>
<h1 align="center">Unreal Tournament 2007 Trailer</h1>
<p class=cbi><a href="/downloads/unreal2007.mov"><img src="/pictures/ut2007.jpg" border=0></a></p>
<h1 align="center">Apple Switch Parody</h1>
<p class=cbi><a href="/downloads/Apple_Switch_Parody.avi"><img src="/pictures/apple.jpg" border=0></a></p>
</div>
<br clear="all" />
<?php include("../footer.php"); ?>
</center>
</body>
</html>The style sheet is attached.
__________________
"I have many layer-eight problems in my life, including myself." |
|
|
|
|
|
#56 |
|
Programmer
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0
![]() |
Lich wrote (way, way back):
"I haven't seen someone cause this much trouble so quickly on a forum in such a short time in a while." Well, if this thread is the closest PFO gets to an all-out flamewar, I'd say this forum is in pretty good shape!
__________________
It can be proved that you can watch streaming video on a Turing machine. The question is, why would you want to? |
|
|
|
|
|
#57 | |
|
Hobbyist Programmer
|
Quote:
As usual DaWei has pointed out something usefull. The title if this thread is "Force footer to bottom of page" not "Force footer to bottom of window". Therefor, position:fixed; is the compleatly wrong direction. Noramly when you create a website, you have a good idea what you want it to look like. You don't just tack on cool shit as you go. *sits in the courner and keeps talking to the wall* |
|
|
|
|
|
|
#58 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
We WISH you would sit in the corner and talk to the wall, instead of misleading people. Obviously, that is against your non-DOM, non-HTML, non-W3C religion. Some preachers, of course, eff up, and get defrocked.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#59 |
|
Hobbyist Programmer
|
I love this thread
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi freelance scripts - http://ryanguthrie.com/index.html |
|
|
|
|
|
#60 | |
|
Programmer
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0
![]() |
Quote:
As for you advice, thanks, but I like using css templates more. If I used your method I would have to add that code in every page seperately. With css I still have to add the code to each file but I never have to change that code in the file again, just the css style template. Which I have already done several times. In the long run it saves you a lot of time.
__________________
"I have many layer-eight problems in my life, including myself." |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|