468,238 Members | 2,042 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,238 developers. It's quick & easy.

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

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
1 1313
drhowarddrfine
7,435 Expert 4TB
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.

Similar topics

3 posts views Thread by Lachlan Hunt | last post: by
12 posts views Thread by hawat.thufir | last post: by
4 posts views Thread by nyy | last post: by
67 posts views Thread by S.Tobias | last post: by
4 posts views Thread by Romeo Colacitti | last post: by
10 posts views Thread by Robert | last post: by
13 posts views Thread by aegis | last post: by
omerbutt
reply views Thread by omerbutt | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.