View Full Version : newby question ->layout??
synomus
11-11-2003, 05:24 AM
Hi!
I started learning HTML a few weeks ago.
Now I have problems to create my first website.
I would be grateful for tips concerning the source text.
..
Thanks
Simon
___________________
Im sorry because of my bad english!!
Corey Bryant
11-11-2003, 05:40 AM
You can use something like this:
<table border="0" cellpadding="0" cellspacing="0" width="770" id="AutoNumber1">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber2">
<tr>
<td width="100%">
<p align="center">Logo</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber3">
<tr>
<td width="100%">
<p align="center">nav</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber4">
<tr>
<td width="100%">
<p align="center">search</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber5">
<tr>
<td width="20%">Log-in</td>
<td width="60%" rowspan="3">Content<p>Content</p>
<p>Content</td>
<td width="20%">Content 1</td>
</tr>
<tr>
<td width="20%">Nav</td>
<td width="20%">Content 2</td>
</tr>
<tr>
<td width="20%">Admin</td>
<td width="20%">Content 3</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber6">
<tr>
<td width="100%">Footer</td>
</tr>
</table>
</td>
</tr>
</table>
Depending on how your logo is, you could use this as well:
<table border="0" cellpadding="0" cellspacing="0" width="770" id="AutoNumber1">
<tr>
<td width="100%"><img src="..">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber3">
<tr>
<td width="100%">
<p align="center">nav</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber4">
<tr>
<td width="100%">
<p align="center">search</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber5">
<tr>
<td width="20%">Log-in</td>
<td width="60%" rowspan="3">Content<p>Content</p>
<p>Content</td>
<td width="20%">Content 1</td>
</tr>
<tr>
<td width="20%">Nav</td>
<td width="20%">Content 2</td>
</tr>
<tr>
<td width="20%">Admin</td>
<td width="20%">Content 3</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber6">
<tr>
<td width="100%">Footer</td>
</tr>
</table>
</td>
</tr>
</table>
If you do not want a fixed width of 770 pixels, change 770 to 100% or to whatever you would like.
synomus
11-11-2003, 05:57 AM
Great!
Thanks a lot!
synomus
11-11-2003, 05:58 AM
do you know the cms typo3???
Corey Bryant
11-11-2003, 06:01 AM
No sorry - I know very little PHP. More of an ASP person
synomus
11-11-2003, 06:05 AM
Do you know a good content management system?
Corey Bryant
11-11-2003, 06:14 AM
Well if you are looking for an ASP based script - can your web host run ASP? If you are on a UNIX server, chances are the answer is no.
synomus
11-11-2003, 06:50 AM
...i don`t know...
i think its a unix server
Corey Bryant
11-11-2003, 06:51 AM
Then you are going to have to use PHP
synomus
11-11-2003, 06:54 AM
yes, do you know a good cms based on php?
Corey Bryant
11-11-2003, 06:55 AM
No - I do not work with PHP unfortunately only ASP.
synomus
11-11-2003, 06:59 AM
what is the reaseon for you to work with asp instead of php?
Corey Bryant
11-11-2003, 07:01 AM
I just have always worked in a Windows environment. You will meet some people who hate Microsoft & will never do anything on a MS environment. I never wanted to learn a UNIX based server or anything about it.
synomus
11-12-2003, 11:29 AM
Hi Corey!
Can you tell me, how to fix a background image behind the content??
__________
Simon
Corey Bryant
11-12-2003, 11:32 AM
I would recommend CSS (placed in the <HEAD>:
<style type="text/css">
body
{
background-image: url("images/background.gif");
background-repeat: no-repeat;
background-attachment: fixed
}
</style>
http://www.w3schools.com/css/css_background.asp
synomus
11-12-2003, 11:39 AM
and this background image is only behind the content in table 5?
Corey Bryant
11-12-2003, 11:43 AM
No it is the background image. I did not know you wanted it only behind that one - I misunderstood you. You probably want it in that cell & not necessarily the table then:
<td width="60%" rowspan="3" background="images/background.gif">Content<p>Content</p>
synomus
11-12-2003, 11:45 AM
is there is possibility to fix the image in this cell?
Corey Bryant
11-12-2003, 12:06 PM
At this point I would recommend you using absolute positioning or of a div. Background images will repeat.
sheva
11-30-2003, 02:39 AM
Originally posted by synomus
Do you know a good content management system?
Check here....
http://php.resourceindex.com/Complete_Scripts/News_Posting/
AND here (if you can use cgi).... http://cgi.resourceindex.com/Programs_and_Scripts/Perl/News_Posting/
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.