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, 1:47 PM   #1
Brokenkingpin
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 Brokenkingpin is on a distinguished road
Question Center a page

I have a page on my site that is done with frames(I know frames are sorta ugly but it works well for this page) and it is scaled perfectly to fit an 800X600 screen. As I put the screen rez higher the page shrinks up to the upper right hand of the screen with lots of white space to the left, which is fine because it still looks the way I want it to. I was just wondering if there is a way to keep this page in the center of the browser no matter what screen rez it is? So if you have a high screen rez the page will appear smaller but will still be centered in the middle of the screen.
Brokenkingpin is offline   Reply With Quote
Old Nov 1st, 2005, 1:49 PM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
I never use frames, but maybe setting the width of the left and the right frame to "*" helps.
Polyphemus_ is offline   Reply With Quote
Old Nov 1st, 2005, 2:07 PM   #3
Brokenkingpin
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 Brokenkingpin is on a distinguished road
Quote:
Originally Posted by Polyphemus_
I never use frames, but maybe setting the width of the left and the right frame to "*" helps.
If i do that the page gets all messed up at different screen resolutions
Brokenkingpin is offline   Reply With Quote
Old Nov 1st, 2005, 2:11 PM   #4
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
[php]<div align="center">
... your stuff here ...
</div>[/php]
__________________
% 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 2nd, 2005, 11:39 AM   #5
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
Yep, you can use <center> but it has been depreciated. Frames have also been depreciated as well. You should look into the HTML coding standards and CSS.

Check out: http://www.htmlhelp.com
frankish is offline   Reply With Quote
Old Nov 2nd, 2005, 12:44 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Deprecation is the process of phasing-out of a feature, usually gradually.
Depreciation is a decrease in value.
__________________
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 6th, 2005, 9:15 PM   #7
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
It's pretty simple.
<!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="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
/*<![CDATA[*/
body
{
	text-align:center;
}
#container
{
	margin:0 auto;
	text-align:left;
	width:700px;
	height:500px;
	border:1px solid black;
}
/*]]>*/
</style>
</head>

<body>
<div id="container">
	Your st*ff here...
</div>
</body>
</html>

Now, if someone could just point bja888 to this post, he might finally stfu...

--47.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"
Agent 47 is offline   Reply With Quote
Old Nov 6th, 2005, 10:05 PM   #8
the_relic
Newbie
 
Join Date: Nov 2005
Posts: 2
Rep Power: 0 the_relic is on a distinguished road
Quote:
Originally Posted by Agent 47
It's pretty simple.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
That is usually a sign of good coding ...

Why do I have the feeling bja888 wouldn't know what that meant? Perhaps it's because his own webpage - meant to show off his talents as a "professional" programmer - doesn't even have a DTD... :p
the_relic is offline   Reply With Quote
Old Nov 6th, 2005, 10:41 PM   #9
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 the_relic
That is usually a sign of good coding ...

Why do I have the feeling bja888 wouldn't know what that meant? Perhaps it's because his own webpage - meant to show off his talents as a "professional" programmer - doesn't even have a DTD... :p
a) That page was written over 2 years ago, that would make me a sophmore in high school. I had no idea what a DTD was.
b) "professional" programmer ? Welcome to the html area!! and just for good measure. Don't quote something someone never said.
bja888 is offline   Reply With Quote
Old Nov 7th, 2005, 1:18 AM   #10
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
Quote:
Originally Posted by bja888
..Welcome to the html area!! and just for good measure. Don't quote something someone never said.
what the heck are you on?

Does it even register to you, that the level of respect to which you have inspired other members of this community is such that they even deride you posts to which you have yet to contribute?
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs 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:36 PM.

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