Official Programmers Thread

  • Christian Chat is a moderated online Christian community allowing Christians around the world to fellowship with each other in real time chat via webcam, voice, and text, with the Christian Chat app. You can also start or participate in a Bible-based discussion here in the Christian Chat Forums, where members can also share with each other their own videos, pictures, or favorite Christian music.

    If you are a Christian and need encouragement and fellowship, we're here for you! If you are not a Christian but interested in knowing more about Jesus our Lord, you're also welcome! Want to know what the Bible says, and how you can apply it to your life? Join us!

    To make new Christian friends now around the world, click here to join Christian Chat.
B

Belgian_Pilot

Guest
#21
:)

GreatKraw, sorry, I'll start from scratch.

Masterpage only works with ASP or PHP. It is not the same as a css file.

In a css file, you store the layout an format information. No contents.

In a Masterpage, you make a basic 'contents' page that has to come back on evey page (like the heading, menu, footer, ...)

In the normal pages, you just add the contents of that page.

I'm making an example for you site to explain, but it's a lot of code. If you pm me your mailadress, I'll send the files when I'm ready. Do you have Microsoft Web Developer 2008 Express? (Free on MSDN)
 
G

greatkraw

Guest
#22
:)

GreatKraw, sorry, I'll start from scratch.

Masterpage only works with ASP or PHP. It is not the same as a css file.

In a css file, you store the layout an format information. No contents.

In a Masterpage, you make a basic 'contents' page that has to come back on evey page (like the heading, menu, footer, ...)

In the normal pages, you just add the contents of that page.

I'm making an example for you site to explain, but it's a lot of code. If you pm me your mailadress, I'll send the files when I'm ready. Do you have Microsoft Web Developer 2008 Express? (Free on MSDN)
I dont want to be Microsoft dependant

I want to be able to do css or something equivalent that I can put on any server
is that possible?
 
B

Belgian_Pilot

Guest
#23
I see... It is possible, but it limits the website to 'static' (no programming available...) Make sure the server supports css! (Most of them do...)

I'll send some examples... need some time to write code.
 
L

loeza89

Guest
#24
@_@ im so confused at all this strange talk of a different language lol
 
B

Belgian_Pilot

Guest
#25
Hello oh Great Kraw :D

This is a simple example of applying css. First the htm page code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<title></title>
<
link href="Stylesheet.css" rel="stylesheet" type="text/css" media="interactive, braille, emboss, handheld, projection, screen, tty, tv" />
</
head>
<
body>
<div id="top-information">
</div>
<div id="menu">

<table style="width:100%;">
<tr>
<td>
<a href="Default.htm">Home</a></td>
<td>
<a href="Links.htm">Links</a></td>
<td>
<a href="MP3s.htm">MP3s</a></td>
</tr>
</table>

</div>
</
body>
</
html>
 
B

Belgian_Pilot

Guest
#26
Now the css-file:

#top-information
{
height: 215px;
margin-left: auto;
margin-right: auto;
margin-bottom: 0px;
margin-top: 10px;
color: #0c0cf1;
background-color: Olive ;
font-size: .85em;
position: relative;
width: 750px;
background-image: url(Images/image2826.png);
background-repeat: no-repeat
}
#menu
{
width: 750px;
height: auto;
margin-left: auto;
margin-right: auto;
position: relative;
margin-bottom: 0px;
margin-top: 10px;
text-align: center;
background-color: Olive;
font-family: Verdana;
}
 
B

Belgian_Pilot

Guest
#27
Used attached image.

The result is already pretty neat, but you need to adapt the link colors.

Play with the css values to discover what happens.

Ask if you have questions...
 

Attachments

W

wwjd_kilden

Guest
#28
yaaaay! Finally something I recognize!!!!!!!!!!!!!!

We learnt a tiny bit of xhtml/ css at the start of the schoolyear :D
 
G

greatkraw

Guest
#29
I see... It is possible, but it limits the website to 'static' (no programming available...) Make sure the server supports css! (Most of them do...)

I'll send some examples... need some time to write code.
well I do want to be able to write some scripting that interrogates the mp3 directory and populates the web page;
the other thing I am after is a consistent look/feel

what is the best approach?

with the solution you gave above, while files would I end up with in my online directory?

thank you aksel
 
B

Belgian_Pilot

Guest
#30
Basicly, you refer in the heading of each htm or html page to the css file.

Put the css code in a file named stylesheet.css. If you want it in a seperate folder, just adjust the link in the html file. I placed it in the same folder like the htm page.

This is the link that tells the htm page to look for css stuff:

<link href="Stylesheet.css" rel="stylesheet" type="text/css" media="interactive, braille, emboss, handheld, projection, screen, tty, tv"/>

So in my example it would be:

MAINFOLDER
---- default.htm
---- Stylesheet.css
---- IMAGES FOLDER
---------- The image I used
 
W

wwjd_kilden

Guest
#31
question: when you have a webpage that uses CSS, how do you show the stylesheet in the browser? (I've forgotten :( )
 
B

Belgian_Pilot

Guest
#32
css is only a file with rules. You can't 'show' it. You apply it on a htm or html page. Put this on the html page to tell it to look to the css file and folow the rules:

<link href="Stylesheet.css" rel="stylesheet" type="text/css" media="interactive, braille, emboss, handheld, projection, screen, tty, tv"/>
 
W

wwjd_kilden

Guest
#33
yea, I have that, but when we did it at school, we were able to show our CSS file as text, almost like how you can show the html source code
 
B

Belgian_Pilot

Guest
#34
Oh, you mean show the code? Just open a css file in notepad.
 
W

wwjd_kilden

Guest
#35
duuuuh

but I don't have the file :p it is on the school sever :p
 
B

Belgian_Pilot

Guest
#36
So, you mean see the css file on an active website?

Impossible if you dont have access. If you have, look in the link I posted above for the exact location of the file!
 
W

wwjd_kilden

Guest
#37
maybe we could just to it because wewere connected to that server then... ohwell, will have to find the backup some day
 
B

Belgian_Pilot

Guest
#38
That's possible. Good luck :)
 
G

greatkraw

Guest
#39
received you files Aksel, thanks
will use them over this weekend
 
G

greatkraw

Guest
#40
Aksel, I am having fun with my CSS

thank you

I had hoped I could set up a template which defined the top of the page and the left hand column
then left the rest of the interior to be specified on each HTML page
is this possible?

it would mean the left hand column would come from the css file
then the middle and right hand column from the html

look like it can't be done like this; can it?

also

i want to change the backgound colour from olive

what are my choices?

thanks and shalom,

off to pool now