Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   template (https://novahq.net/forum/showthread.php?t=38793)

maverick 09-28-2005 10:03 PM

template
 
im still pretty new to php but could some1 show me how to make a php template (basic one)

sof-com 05-26-2008 03:30 AM

PHP Code:

<html>
<
head>
<
title>Hello world</title>
</
head>  

<
body>
<! -- 
Lets show whats in the body -->
<
p>Hi  my first page lets start the work </p>
<! -- 
oh the end of crap lol -->
</
body>


</
html

thats only a test page you also can center it to a
PHP Code:

<center> ( CONTENT) </center

tables ? need then if you wont to show a block

PHP Code:

<table width="100%"  border="0"  cellpadding="0"

lets end the tables

PHP Code:

 </table

also wont color ?

before body add this

PHP Code:

<link rel="stylesheet" href="style.css" type="text/css"

now you can find the color in css file also you can make the file change center the file place color files

Here i made you a css file to put in style.css

PHP Code:

body {
  
font-familyarialsans-serif;
  
page-break-afteralways;
  
font-size12px;
  
color#A80000;
  
background-colorlight blue;
  
margin-left0px;
  
margin-right0px;
  
margin-top0px;
 }

a:linka:visited 
text-decorationunderline
color #000000;
}

a:active 
text-decoration
underlinecolor #7CFC00 
}

a:hover 
text-decorationnone;  
font-size14px
color #FF0000;
positionrelative;
top1pxleft1px
}

.
head {
  
background-imageurl('img/head.gif');
  
background-repeatrepeat;
  
background-color#A80000;
  
padding2px 2px 2px 2px;
  
margin3px 0 0;
  
color:#FFD700;
  
text-aligncenter;
  
border-width:2px 0;
  
border-style:solid;
  
border-color:#000000;
 
}

.
check {
  
background-color#999;
  
padding2px 2px 2px 2px;
  
margin3px 0 0;
  
color:#00000;
  
text-aligncenter;
  
border-width:2px 0;
  
border-style:solid;
  
border-color:#fffffff;
 
}

.
hd3 {
  
background-color#000000;
  
padding2px 2px 2px 2px;
  
margin3px 0 0;
  
font-size12px;
  
color#FFFFFF;
  
text-alignleft;
  
border-width1px 0;
  
border-stylesolid;
  
border-colorblack;
  }

.
hd3a {
   
margin-left:auto
  
margin-right:auto;
  
text-align:center;
  
margin-top:4px;
  
margin-bottom4px;
  
border-styleoutset;
  
border-bottom-color#000000;
  
padding0;
  
border-spacing5px 5px;
  }

.
link {
  
text-decorationunderline;
  
font-weightbold;
  
color#ffffff;
 
}

.
t1 {
  
margin-left:auto
  
margin-right:auto;
  
text-align:center;
  
margin-top:4px;
  
margin-bottom4px;
  
border-styleoutset;
  
border-bottom-color#ff0000;
  
padding0;
  
border-spacing5px 5px;
 }

.
sub {
  
background-imageurl('img/line.gif');
  
background-repeatrepeat;
  
font-weightbold;
  
color#000000;
  
background-color:#fffffff; 
  
margin0 0 0
  
text-align:center;
 }
.
hr1 {
  
margin-left:auto
  
margin-right:auto;
  
text-align:center;
  
margin-top:4px;
  
margin-bottom4px;
  
border-styleoutset;
  
border-bottom-color#ff0000;
  
padding0;
  
border-spacing5px 5px;
  
color#ffffff;
  
background-color#000000; 
  
text-align:center;
 }
.
ad {
   
overflow-stylemarquee
   
marqueetrue;
   
text-align:left;
 }



Is &#8216;infinite’ a better default than ‘1’?

.titlename 
color:black
font-size:40px;
font-weightbold;
position:relative
top:0
left:0
}

.
r3 {
text-decoration:none;
font-weight:bold;
border:3px solid;
padding:2px;
border-color:#6cf #2af #2af #6cf;
background:#9df;
}
a:hover {
border-color#2af #6cf #6cf #2af;
}

input{
background-color:#FFFFFF;
color:#000000; 
border1px solid #F99F2B
}
select{
background-color:#FFFFFF; 
color:#000000; 
border1px solid #F99F2B;



i can help you make a valid xhtml, html

hope this helps abit more to your coding


All times are GMT -5. The time now is 05:50 PM.

Powered by vBulletin®