473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 ".contentbox" 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="container">
<div class="contentbox">

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="container">
<div class="contentbox">

</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("images/AUBIlogo-faded.gif")}
body {margin:2em 10%;text-align:center;}
h1 { color:#38a;font:bold 150% Verdana,Helvetica,Arial,sans-serif;}
h2 { color:#a48;font:bold 125% Helvetica,Arial,sans-serif;}
h3 { color:#aee;font:bold 115% Tahoma,Arial,sans-serif;}
h4 { color:#5fd;font:bold 105% Verdana,Helvetica,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;font:bold 90%
Verdana,Tahoma,Arial,sans-serif;
padding:0.1em 0.3em;}
a {text-decoration:none;}
a:hover {color:red;text-decoration:underline;}
#unitname {color:blue;font:bold 200% Verdana,Arial,Helvetica,sans-serif;
text-align:center;}
#unitbox {margin:1em 5%;
border:1px solid magenta;background-color:#ddd;padding:1em 2em}
#unitsubname {color:#e41;font:bold 150% Arial,Helvetica,sans-serif;
text-align:center;}
.container {width:40em;padding:1em;background-color:#ffe0e0;}
.contentbox {text-align:justify;}
#pagetitle {text-align:center; font:bold 180% 'Arial
Narrow',Helvetica,sans-serif;
color:#33b;}
#revising {font:normal 83% Tahoma,Helvetica,sans-serif;
margin-bottom:3em;}
=========== end stylesheet ==============
Jan 17 '06 #1
2 1766
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@gmailDOTHEREcom> 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
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"...
2
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
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". ...
6
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...
1
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
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...
3
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.....
6
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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,...

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.