By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

Why Alignment Problem has come after Conversion of HTML code to XHTML?Help

P: 10
Hi,

I am being faced with a strange problem...
I wrote a code for displaying pages in HTML and hence was using HTML parser. Now i am using the same code but now parsing using XHTML that is i want code to be converted to XHTML .
Now theproblem is that----------
All the functionality is working fine after conversion except the alignment problem which has arisen in XHTML....
All the text area which was shown as LEFT aligned in HTML has now got center aligned.
The CSS(all the classses) used are the same as used with HTML code..
So what could be the reason of this distortion in alignment?
Why alignment has shifted. Is XHTML code has something to do with CSS?

Please help me solve this problem????
Thanks in advance,
shalini jain
May 2 '07 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
It depends on your markup and not the css. Some attributes of html are no longer allowed in xhtml, as well as some elements. HTML Compatability Guidelines
May 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.