php three column layout

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sayee3k1
Forum Newbie
Posts: 20
Joined: Sat Feb 14, 2004 5:41 pm

php three column layout

Post 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
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post 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.
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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?
Post Reply