![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 12
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
I never use frames, but maybe setting the width of the left and the right frame to "*" helps.
|
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Oct 2005
Posts: 12
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#4 |
|
Professional Programmer
|
[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;} |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 3
![]() |
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" |
|
|
|
|
|
#8 | |
|
Newbie
Join Date: Nov 2005
Posts: 2
Rep Power: 0
![]() |
Quote:
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 |
|
|
|
|
|
|
#9 | |
|
Hobbyist Programmer
|
Quote:
b) "professional" programmer ? Welcome to the html area!! and just for good measure. Don't quote something someone never said. |
|
|
|
|
|
|
#10 | |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Quote:
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 |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|