html question

S

s4

Guest
is there an html tag that controls how long a page is in pixels? like "height="? I'm just playing around with homepage that I've been thinking about. If not, I can use a table to control the length.
 

fury

Administrator
Staff member
As far as I know, there's no HTML tag to do it, but it might be able to be done by using a width command in the BODY style. Like so:

BODY {
width:500px
}

which, I'm not sure, but it might set the body to 500 pixels in width.

You could enclose the entire page in one DIV or LAYER with the width set to whatever you want, but DIVs only work with IE and LAYERs only work with netscape.

Therefore, if the width command in the BODY style doesn't work, then tables are the only way.
 

flavio

superfly
Staff member
I really wanted to do something like that on <a href="http://astd00.bluedot.com/kioskNetscape/index1.oft"><font color="red">This page</font></a>. It uses a bunch of frames and I thought if I could set the height I could have the whole page scroll as on entity instead of multiple scroll bars when someone was using 800x600 or smaller resolution.

I couldn't even use tables, because it didn't work out to well nesting a bunch of frames inside a table.
 
S

s4

Guest
I was messing around with an ezboard and wanted to set the page length to trucate their stupid links at the bottom.
 

Duckman

New Member
I would definitely use tables. When I made this site , I used tables, and instead of frames( I assume you use frames to have more flexibility when you update) I use include files. You can use include files as a "virtual frame", and your index file becomes only the text field or content field if you like.

The syntax for include files is [!--#virtual include="filename.shtml"--]

What this line does is fetching the filename.shtml and put it in where ever the include statement is written, like in an index file

Example of a simplified index file:

[!--#virtual include="top.shtml"--]

[H1]Headline[/H1]

[p]blah, blah, bla.....

[!--#virtual include="bottom.shtml"--]

PS: use < and > instead of [ and ]
If you have a look here:

http://ssjothun.hypermart.net/dwp/new/top.shtml
and
http://ssjothun.hypermart.net/dwp/new/bottom.shtml
you see the files I use to put in my index file, and the result is this:

http://ssjothun.hypermart.net/dwp/new/

Hope this helps!

Duckman
 

fury

Administrator
Staff member
Addendum to Duckman's reply:

You MUST name the file you wish to put #include tags in as .sht, .shtm or .shtml

The file you call with #include doesn't need to be .shtml, unless it has more #include tags in it, but the file that you want to use the tag in does.

Also, if it doesn't work, you may have to put a file called ".htaccess" (without the quotes) in the web root that contains these three lines:

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
AddType text/x-server-parsed-html .html

If it still doesn't work, you may not have SSI (server side includes) capability at all.
 

NEWMAN

Live GEEK Radio
Originally posted by s4
I was messing around with an ezboard and wanted to set the page length to trucate their stupid links at the bottom.

:confused: I just tried that on my server and I got this error

[192.168.1.4] RPC 'virtual' does not exist.
SSI processing failure.

can someone tell me what this means?
 

bitchen

Dude!
take out the word "virtual" make it &lt;!--#include etc.

.htaccess may not work unless you're hosed on Apache and your admin lets you do this.

Contact the ISP or online docs for your ISP for proper SSI suntac and flags.

If Apache x-bit-hack is on, it's just a matter of marking the file executable from the shell or your FTP client for the SSL to be turned on.

Actually, come to look at it, if it yeed at you about "virtual" then SSI is probably already turned on. Try the syntax in paragraph one.
 

fury

Administrator
Staff member
After rereading Duckman's reply, I just realized he mixed up virtual and include :eek:

[!--#include virtual="file.txt" --]

replace [ ] with < >

That should solve it
 
Top