Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-02-2006, 02:46 AM   #1
BSOD
 
King of Kings's Avatar
 
Join Date: Mar 2006
Posts: 1,072
Default simple script

can anyone post a simple web script with a verticle menu and site header and main content section in the middle of the page
__________________

King of Kings is offline   Reply With Quote
Old 07-02-2006, 08:03 AM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: simple script

do you want the layout to be table based or css based?

also can you draw a simple box representation in paint and post a vague idea of how you want it to be?
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-02-2006, 12:22 PM   #3
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: simple script

I THINK thats what you want...
Code:
<html>
<body>
<table width="650" border="0">
  <tr>
	<th width="150" height="90" scope="col">
	<th width="500" scope="col">
  </tr>
  <tr>
	<td height="440">
	<td>
  </tr>
</table>
</body>
</html>
j03 is offline   Reply With Quote
Old 07-02-2006, 03:59 PM   #4
BSOD
 
King of Kings's Avatar
 
Join Date: Mar 2006
Posts: 1,072
Default Re: simple script

it should be very simple,but I forgot how because its been so long. I was thinkingg a css layout. but heres a idea of what exactly im talking about.

http://img149.imageshack.us/img149/6052/dxeexamp8tx.png


allllllllright looks like im gonna have to do some research lol
King of Kings is offline   Reply With Quote
Old 07-05-2006, 07:00 AM   #5
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: simple script

Code:
<html>
<head>
<style>
#title {
postition: absolute;
top:10px;
width: 100%;
height: 10%;
border: 1px dashed #000;
}
#menu {
position: absolute;
top: 12%;
width: 20%;
height:88%;
border: 1px dashed #000;
}

#main {
position: absolute;
top: 12%;
left: 21%;
height: 88%;
width: 79%;
border: 1px dashed #000;
}
</style>
</head>
<body>
<div id="title">Title</div>
<div id="menu">Menu<br>items</div>
<div id="main">Main</div>
</body>
like that?
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-06-2006, 09:28 AM   #6
BSOD
 
King of Kings's Avatar
 
Join Date: Mar 2006
Posts: 1,072
Default Re: simple script

yea thatl work very good. thanks alot root

hmm how would I make it not dashed though?
King of Kings is offline   Reply With Quote
Old 07-06-2006, 09:49 AM   #7
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: simple script

either change the word dashed to solid in the style section, or just take away the borders all together in the style section. the borders are only really there to show you the position of the divs anyway, they don't have to be there, even if you can't see the barriers in the regions they will still be there.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-06-2006, 10:19 AM   #8
BSOD
 
King of Kings's Avatar
 
Join Date: Mar 2006
Posts: 1,072
Default Re: simple script

alright this script would be labeled as css tables right?
King of Kings is offline   Reply With Quote
Old 07-06-2006, 11:16 AM   #9
In Runtime
 
linnerd40's Avatar
 
Join Date: Jun 2006
Posts: 218
Default Re: simple script

It doesn't have to be a seperate script. The CSS (all that under the <style> tage) goes right onto the code for your page. You can include you CSS in a seperate file, but there really is not need. If you do want to have the CSS in a seperate file, then you can link to it with something along the lines of this:
Code:
<link rel="stylesheet" type="text/css" href="/location/of/file.css"/>
Ok, I don't know if this is what you are looking for... but that worked for a webpage I am making so. Anyway, what root wrote up is what you need. Under the <div> tags, put what you want, ie everything under <div id="title"> will go into the title. Ok, you know that. Sorry if I have confused you or given unnecessary info...
__________________
Check out my blog: www.justanothertechblog.blogspot.com

Please give me Rep if I have helped you in any way! : )
linnerd40 is offline   Reply With Quote
Old 07-06-2006, 11:18 AM   #10
BSOD
 
King of Kings's Avatar
 
Join Date: Mar 2006
Posts: 1,072
Default Re: simple script

lol nah bro its allright but that wasent what I was asking.I was asking if it was more of a css layout or div layout,it has div tags so im guessing its leaning towards a div layout

p.s-thanks for the quick synopsis though lol
__________________

King of Kings is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0