Page 1 of 1

php three column layout

Posted: Tue Feb 17, 2004 10:47 pm
by sayee3k1
hai

I have two questions

1. can we include php files in index.php .because when i include them before my html it does not take it.

2. what is the way to get a three column layout in a php file .

I am designing site and having problems with the layout.

http://sai.zer0host.com

I want to have a three column layout so that i can view that in all browser without much difference .

the style sheet I am using is

body { background-color: white;
font-family: courier;
font-size: 13px;
color:black;
margin:0px;
padding-bottom:20px;
background-color:azure;
scrollbar-highlight-color: #669966;
scrollbar-shadow-color: #669966;
scrollbar-arrow-color: #669966;
scrollbar-track-color: #ffffff;
scrollbar-3dlight-color: #ffffff;
scrollbar-face-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
margin:0px;
}

#header { height:208px;
background:white;
border:0px solid ;
}

#mainbody { top:220px;
width:380px;
margin-right:10px;
margin-left:140px;
padding-top:5px;
padding-right:5px;
padding-bottom:5px;
padding-left:10px;
background:white;
border:1px solid #004898;
}

#menu { position:absolute;
margin-right:5px;
margin-left:5px;
top:220px;
left:4px;
width:120px;
background:white;
color:black;
border:1px solid #004898;
text-align: center;
}

#menuitem { width:100px;
background:white;
color:black;
font-size:10px;
border:0px solid lightskyblue;
text-align: center;
}



#footer { width:100%;
text-align:center;
margin-top:5px;
padding:1px;
background:white;
color:black;
border:1px solid #004898;
}

a:hover { color:black}
a:active { color:black}

h1 { font-size:30px}

h2 { font-size:24px}

h3 { font-size:20px}

p,h1,h2,h3 { margin: 10px 10px 10px 10px}

.heading { font-family:Lucida Calligraphy;
font-size:36px;

color:black;
font-weight:bold;
text-align: center}


what are the changes i have to make in the width so that it is displayed ok in all browsers.

Thanks

urs
sai

Posted: Thu Feb 26, 2004 3:51 pm
by Unipus
Can you describe what the problem is exactly? I can't go through all your code looking for a problem that might not even exist.

Posted: Thu Feb 26, 2004 4:02 pm
by infolock
1. can we include php files in index.php .because when i include them before my html it does not take it.
yes, you just have to use the Include call..

Code: Select all

include('myscript.php');
as for the second question, no idea what you are trying to do. can you explain it a bit more please?