473,513 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server-side includes, DIVS and CSS

15 New Member
I am creating a website using DIV tags for the layout, and attaching the template to a CSS style sheet. I was given an html file that already included the banner and server side includes for centralized code (search box and other links), and that was attached to a style sheet. The banner file and the CSS style sheet are located on the server which I then copied over to my local machine so i could work on it. I renamed them so I would not over-write the original files.

I added DIV tags for the nav bar and the content, below the banner and includes part. I then went to the CSS style sheet and added styles for the nav bar and the content part. However, the html file with the banner did not change when i upload the ducument to the server. Any idea what I am doing wrong? Furthermore, I need to save my file as PHP, but if I do so, the includes will not show when i upload the file to server and look at the file in the browser. If i keep file as HTML the includes are visible.

Any help is appreciated!
May 11 '07 #1
3 1752
drhowarddrfine
7,435 Recognized Expert Expert
A link or the complete code is better here.
May 11 '07 #2
catlover30
15 New Member
Hi, Thanks for the reply and sorry I did not reply sooner: was away.
The code for the page I was given to work on is here:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<script type="text/javascript" src="http://www.xxxx/folder/scripts/EventHandler.js"></script>
<script type="text/javascript" src="http://www.xxx/folder/scripts/DropDown.js"></script>
<script type="text/javascript" src="utils.js"></script>

<link rel="stylesheet" href="main.css" type="text/css" media="screen" />

<!--[if IE 7]>
<style type="text/css">
#utilities ul li.search input {margin-top: 3px; }
</style>
<![endif]-->

</head>

<body style="width: 760px; margin: 10px auto;">

<div id="utilities">
<ul>

<!--#include virtual="utility.nav.html"-->
<!--#include virtual="test/includes/fastlinks.html"-->
<!--#include virtual="test/includes/divisions.html"-->

<li class="search">
<form action="http://google.xxxx.com/search" method="GET" name="gs">

<input type="hidden" name="site" value="XXXWeb_Main" />
<input type="hidden" name="client" value="XXXWeb_Main" />

<input type="hidden" name="output" value="xml_no_dtd" />
<input type="hidden" name="proxyreload" value="1" />

<input type="hidden" name="proxystylesheet" value="main_frontend" />
<input type="hidden" name="sitesearch" value="www.xxxx/main" />

<input type="text" name="q" value="Search This Site" onfocus="javascript:this.value=''" onblur="javascript:this.value='Search This Site' "/><button type="submit" name="submit" value="search">go</button>

</form>
</li>
</ul>
</div>
<div id="header">
<div id="Logo1">

<a href="http://www.xxxx">Our Site</a>
</div>
<div id="Logo2">
<a href="http://"www.xxxx">Our Site</a>
</div>
<div id="Logo3">
<a href="http://"www.xxxx/main">Our Division</a>
</div>
</div>

</body>
</html>
May 20 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
Thread closed and continued here.
May 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4556
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
6
4434
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
9
669
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
2793
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
0
4515
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
22
3237
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
2
4901
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
7290
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
1
6592
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
14
3000
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.