473,884 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Part---Not Whole--of Stylesheet Not Rendered On One Server, But Fully Rendered On Another


I don't think I have ever encountered something like this before.

On a Windows XP running Apache 2.0.53 I do my page development (XP
machine).

I then upload the stuff to a Linux/Redhat/Fedora running Apache 2.0.54
(Linux machine)

I have a page that features an external stylesheet, as well as styling in
the <style> element area of the document head, as well as element-specific
styling throughout the page.

The page looks quite different on the XP and Linux machines, both in IE
and FF1.5. I eliminated the possibility of external stylesheet failing to
load; the Apache server does not specify a Content-Type header, but the
styling is as expected for the XP machine-loaded page, but not the Linux
loaded page. At any rate, all the styling for the body, h1, h2, and the
id-specific styling is present.

What is NOT present is the styling that applies to the CLASS-specific
elements. It is present in the server running on the XP machine
(localhost, or 127.0.0.1), but NOT on the Linux machine.
The external stylesheet is given below. Note that all the styles are
rendered on the XP machine-served page, and all styles but the selectors
".container " and ".contentbo x" are rendered on the Linux machine-served
page. I put a light red background in the '.container' style so that I
could see it (it is not normally there). The classes refer to DIVs.
The idea behind the container/contentbox nested DIVs is to created a
justified text box centered in the rendered page, and which adjusts if the
window is adjusted, but up to a limit.

In the HTML document body, I have something like this going:

<div class="containe r">
<div class="contentb ox">

all sorts of content here
</div>
</div>

<oversized table>
sometimes with a oversized table
which had negative margins when contained inside the nested DIVs
but IE doesn't seem to handle negative margins, so I have to
try to pull the table out of the centered justified text box
</oversized table>

<div class="containe r">
<div class="contentb ox">

</div>
</div>

Does anyone know why it is rendered exactly as expected on one machine
(the localhost) and not on the other (the remote host)?

=========== begin stylesheet ==============
html {background-image:url("imag es/AUBIlogo-faded.gif")}
body {margin:2em 10%;text-align:center;}
h1 { color:#38a;font :bold 150% Verdana,Helveti ca,Arial,sans-serif;}
h2 { color:#a48;font :bold 125% Helvetica,Arial ,sans-serif;}
h3 { color:#aee;font :bold 115% Tahoma,Arial,sa ns-serif;}
h4 { color:#5fd;font :bold 105% Verdana,Helveti ca,Arial,sans-serif;}
table {background-color:gray;}
table td {background-color:#f0f0ff;
font:normal 100% Arial,Helvetica ,sans-serif;
padding:0.1em 0.3em;}
table th {background-color:#fff0f0;f ont:bold 90%
Verdana,Tahoma, Arial,sans-serif;
padding:0.1em 0.3em;}
a {text-decoration:none ;}
a:hover {color:red;text-decoration:unde rline;}
#unitname {color:blue;fon t:bold 200% Verdana,Arial,H elvetica,sans-serif;
text-align:center;}
#unitbox {margin:1em 5%;
border:1px solid magenta;backgro und-color:#ddd;padd ing:1em 2em}
#unitsubname {color:#e41;fon t:bold 150% Arial,Helvetica ,sans-serif;
text-align:center;}
.container {width:40em;pad ding:1em;backgr ound-color:#ffe0e0;}
.contentbox {text-align:justify;}
#pagetitle {text-align:center; font:bold 180% 'Arial
Narrow',Helveti ca,sans-serif;
color:#33b;}
#revising {font:normal 83% Tahoma,Helvetic a,sans-serif;
margin-bottom:3em;}
=========== end stylesheet ==============
Jan 17 '06 #1
2 1785
Patient Guy wrote:

On a Windows XP running Apache 2.0.53 I do my page development (XP
machine).

I then upload the stuff to a Linux/Redhat/Fedora running Apache 2.0.54
(Linux machine)

The page looks quite different on the XP and Linux machines, both in IE
and FF1.5. I eliminated the possibility of external stylesheet failing to
load; the Apache server does not specify a Content-Type header, but the
styling is as expected for the XP machine-loaded page, but not the Linux
loaded page. At any rate, all the styling for the body, h1, h2, and the
id-specific styling is present.

What is NOT present is the styling that applies to the CLASS-specific
elements. It is present in the server running on the XP machine
(localhost, or 127.0.0.1), but NOT on the Linux machine.

Please post an URL. Especially for a problem like this, code snippets
are useless.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 17 '06 #2
On 2006-01-17, Patient Guy <sevisen.adam@g mailDOTHEREcom> wrote:

I don't think I have ever encountered something like this before.

On a Windows XP running Apache 2.0.53 I do my page development (XP
machine).

I then upload the stuff to a Linux/Redhat/Fedora running Apache 2.0.54
(Linux machine)

I have a page that features an external stylesheet, as well as styling in
the <style> element area of the document head, as well as element-specific
styling throughout the page.

The page looks quite different on the XP and Linux machines, both in IE
and FF1.5. I eliminated the possibility of external stylesheet failing to
load; the Apache server does not specify a Content-Type header, but the
styling is as expected for the XP machine-loaded page, but not the Linux
loaded page. At any rate, all the styling for the body, h1, h2, and the
id-specific styling is present.


could it be a filename-case issue?

have you downloaded the files and confirmmd that they
have correct content?

What HTTP headers are you getting from the servers?
Bye.
Jasen
Jan 18 '06 #3

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

Similar topics

8
3056
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform" action="page2.asp" method="post"> But I don't want to open another page, I just want to submit the form data. Should I do the following?? myform.submit();
2
6732
by: hitendra15 | last post by:
How to Deploy SQL server Database to another PC, How to create a package that craetes Database as well as ODBC driver for accessing data at enduser PC, using .Net VB
14
24248
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". This all works in Internet Explorer, but doesn't work with Firefox. In both IE and Firefox this works: <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt" version="1.0"?>
6
1474
by: |-|erc | last post by:
Here's a test program that should output Members:0 but instead I get "I cannot get data from the database!". Its as if the tables are not there but I have created them, does anyone know why this would work on one server but not another? <?php function sql_get_result($sql) { global $link, $result; if ( !($result = mysql_query($sql, $link))) { exit ("I cannot get data from database!<br>"); } return $result;
1
1064
by: Grey | last post by:
Can I connect the SQL Server DB from another domain?? If so, is there any parameter changing in order to connect it? Million Thanks
3
1260
by: Mike | last post by:
I need to do the logical equivelent of Server.Transfer to another server whos identity is known only upon receipt of the request. (The other machine is on-site, but not addressable from the outside world, which is one of many reasons I can't do a Redirect.) I'm assuming I have to make another request, and then copy the response back to the original response. What is the most efficient way of doing this? (All servers are IIS/Asp.Net.)...
3
1522
by: teranews | last post by:
My question is this... Is 'LINK'ing a stylesheet required before 'IMPORT'ing another for successful hovering? I have a problem which cropped up with the introduction of IE 7 Beta 2... Yes.. I realize it's IE (strike one)... and it's Beta (strike two)... but ALL the hovering on my web site doesn't work in IE 7 B2 ! ! !
6
2380
by: amaragraps | last post by:
Dear thescripts Experts, I have converted my large wavelets page http://www.amara.com/current/wavelet.html from HTML into XHTML and CSS and have one large remaining bug. On Safari and Opera and the Linux Red Hat browser, the full page is not rendered, even though if you "view" the source in the browser window, all of the text is listed.
3
3812
by: ChrisN | last post by:
Invoking a postback before a large ASP.NET page has fully rendered will often cause the page to crash. This is unhelpful and confusing to users. I'm wondering if I can overcome this by disabling any controls that invoke a postback until the page is fully rendered, ie setting the controls disabled server-side, serving the page and then having a JavaScript routine right at the bottom of the page re-enable them client-side.
0
9954
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9799
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10769
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10869
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9591
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5808
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4231
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.