en.opensuse.org

Making the site

Go to page 1 2 3 4 5 6 7 8

As explained on the first page I work with css and php. css is available for you on your local machine. For php, you must have access to a server that supports php. First check if the place where you are going to put the site supports php, otherwise the who exersise is a bit useless. For testing I use my own SUSE Linux 10.0 machine, so I can use http://localhost/website/test.php to look at.

To build a site, I make use of some small tricks. First I make a basic website with only the most basic things on it.

<html>
<head>
<title></title>
</head>
<body>
Info<br>
Logo<br>
Menu<br>
  Part1<br>
  Part2<br>
Text<br>
Copyright<br>
</body>
</html>

That is what I use as the basis to build on. The next is to look at my drawing and put the CSS part around it. This gives me something like the following as code with this css file:

<html>
<head>
<title></title>
<link rel=stylesheet type="text/css" href="style.css">
</head>
<body>
<div id="info">Info</div>
<div id="logo">logo</div>
<div id="menu">Menu
  <div id="menu_box">Local</div>
  <div id="menu_box">Other</div>
  <div id="menu_box">RSS feed</div>
</div>
<div id="text">Text</div>
<div id="copyright">Copyright</div>
</body>
</html>

In the style.css file I put a border around each and every thing, so that placing it is a lot easier to do. They have now been commented out. When you have the layout you like, you can go on to the next page.