Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 1st, 2005, 12:55 PM   #51
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
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.
Attached Files
File Type: zip style.zip (1.6 KB, 12 views)
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
Old Nov 1st, 2005, 1:03 PM   #52
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Quote:
Originally Posted by bja888
alreeady said that...
Listen jerk, my fix works perfectly in my browser with his pages. It does the same thing as yours, but much, much better (of course). It is applied to his CSS rather than each separate page and it doesn't use tables as a quick fix like some idiot.

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;}
iignotus is offline   Reply With Quote
Old Nov 1st, 2005, 1:21 PM   #53
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
Quote:
Originally Posted by Obtruse_Man4
I made the header and footer fixed.
So then what happends if someone with a small screnn res. visits your site. Or you have more content. The footer will be placed on top of it.
bja888 is offline   Reply With Quote
Old Nov 1st, 2005, 2:27 PM   #54
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Nov 1st, 2005, 3:43 PM   #55
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
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.
Attached Files
File Type: zip style.zip (1.7 KB, 12 views)
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
Old Nov 1st, 2005, 3:47 PM   #56
Senger
Programmer
 
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0 Senger is on a distinguished road
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?
Senger is offline   Reply With Quote
Old Nov 1st, 2005, 4:44 PM   #57
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
Quote:
Originally Posted by Obtruse_Man4
I tried fixing the header as well, but that screwed some spacing up.
Hi there! You might of seen me before! I have been posting here and there on this thread. I was wondering if you noticed I already came up with a cross-browser, completly working tamplate? I kinda feel like I'm talking to a wall here.

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*
bja888 is offline   Reply With Quote
Old Nov 1st, 2005, 5:03 PM   #58
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Nov 1st, 2005, 5:10 PM   #59
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 224
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
I love this thread
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Nov 1st, 2005, 5:54 PM   #60
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
Quote:
Originally Posted by bja888
Hi there! You might of seen me before! I have been posting here and there on this thread. I was wondering if you noticed I already came up with a cross-browser, completly working tamplate? I kinda feel like I'm talking to a wall here.

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*
My website serves two purposes; one that I can host a small amount of files and share a couple of my thoughts online, and two so that I can get better at coding. I did not sit down and draw out a detailed plan of what I wanted my site to look like. I had no plan actually. I just took things as they came. So far I think my site looks pretty decent. Do you have a site? I'd like to see what a master, such as yourself, can come up with when they plan something out.

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."
Obtruse_Man4 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC