Topic: XSLT div centering problem Pages that link to <a href="https://ozoneasylum.com/backlink?for=26637" title="Pages that link to Topic: XSLT div centering problem" rel="nofollow" >Topic: XSLT div centering problem\

 
Author Thread
jfassnac
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Sep 2005

IP logged posted posted 09-13-2005 22:37 Edit Quote

Anyone heard of this happening? I use CSS to format my website with a single column centered in the page. To do this I set the width of the parent block and margin-left, margin-right to auto. This works fine on all my pages. Here's the wrinkle...

Recently I have added some dynamic database driven pages using an XSLT stylesheet to display the XML data pulled from the database (FM Pro 7). Inside the XSLT page I link to my CSS file for formatting. When I load the page everything looks fine in Netscape, and Firefox, but in IE the website is no longer centered it is left aligned. I have worked on this for a while but can seem to find a reason for the change so any help would be appreciated.

jfassnac
Obsessive-Compulsive (I) Inmate

From:
Insane since: Sep 2005

IP logged posted posted 09-13-2005 22:46 Edit Quote

Never mind :-) Of course as soon as I give up and post a question the answer comes to me.

Just in case anyone else runs into some thing like this you have to define the html DOCTYPE in the <xsl output> tag using the doctype-public and doctype-system attributes.

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 09-14-2005 11:53 Edit Quote

Hehe, it was always the same for me, whenever I posted questions here. I do remember coming across this issue myself a number of times actually, so it's good to have it here for posterity.

Cheers,



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu