Hi Heidi:
Here's something else you might try:
1) Edit ~images/style.css to add something that you will recognize. For example, change the #wrapper background to green; 2) Point your browser to http://www.olagos.eu/images/style.css and observe that the change is in place 3) Next, point your browser to http://localhost:80/images/style.css (or whatever port you are running on locally) and observe that the change is in place [It should be visible from both locations. If not, then that narrows down the problem] 4) Go to another system and another browser and try http://localhost:80/images/style.css [Again, the change should be visible in style.css using a browser to view the file. If not, then that narrows the problem down.]

5) Forget about trying to figure this out and center your wrapper this way:
#wrapper {
   width:952px;
   margin:0px auto;  <------ note the use of only 1 auto
   text-align:left;
   padding:15px;
   border:1px dashed #333;
   background-color: #BBB;
   }

Hope that helps.
Ruth
----------------------------------------------------
Find me on the web at http://www.myofbiz.com or Google keyword "myofbiz"
[email protected]


Adrian Crum wrote:
I agree with Scott. The web server doesn't care what the content is - it is just sending out streams of characters. It doesn't know if it's sending "auto" "margin" or any other set of characters.

-Adrian

Scott Gray wrote:
css files are interpreted by the browser, not by the server. The only way you could have a different end result is if the css files or the generated html is different.

Regards
Scott

On 19/01/2010, at 3:20 PM, Info Olagos wrote:

Hi Scott,

The css files are exactly the same. (copied them)
The html file is the same but generated via xml and ftl.
The css file with the ftl on the tomcat doesn't react on the "auto" keyword
of the "margin 0px" tag.
Heidi

2010/1/19 Scott Gray <[email protected]>

Hi Heidi

I can think of no reason why you should see differences, all I can suggest is that you take a diff of the html source from each and compare them for differences. If they are the same then double check that the css files are
also the same from each.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 19/01/2010, at 1:43 AM, Info Olagos wrote:

Hello,

I have a very strange problem.
I can only imagine that it is dependent on the FTL.

This is my page on the apache server. There is no problem. All things are
beautiful centered.
http://www.olagos.eu/index_d.html

OK the links to the images are not ok at the moment. But you see that
here
it is loaded in the center, so that is perfect.

If i load the same files from the embedded tomcat, i have a problem. It
is
to say that the container is not put in the center but at the left. The problem is in the word "auto" on the wrapper tag in the css file. This word "auto" is not recognized if i generate the html file from within a
ftl
file.
Have a look at the result in :
http://www.olagos.eu/ecommerce/control/main

Anyone an idea on a bug on Freemarker language level. ???

regards,
Heidi



Reply via email to