fazlionline Posted October 5, 2009 Report Posted October 5, 2009 Hello all I have my index page, designed earlier today, when I copy test from ms word file and past in paragraph, my whole document?s align goes to left. When I remove the paragraph back, it justifies again and comes it its original position. Any help Quote
falkencreative Posted October 5, 2009 Report Posted October 5, 2009 Are you working in Dreamweaver, and using the design view to paste the code in? If so, when you copy text from Word it comes with a bunch of default styling -- a lot of which is invalid for web design and causes display issues when it overrides your existing styling. Your best bet is to copy the text from Word, paste it into a plain text document like Notepad to remove any styling, and then copy/paste that text into Dreamweaver. Alternatively, instead of using the "paste" command to paste content from Word, another option is to go up to Edit -> Paste Special, and select the "text only" option. I believe that will remove any Word formatting as well. Quote
fazlionline Posted October 5, 2009 Author Report Posted October 5, 2009 Yes, I use DreamWeaver CS3 & using ?Design View? to past. As you directed, I used ?Past Special? from Edit menu and got same problem Then I pasted my text in Notepad and got same problem Quote
virtual Posted October 5, 2009 Report Posted October 5, 2009 If you want it to justify your html put this in your css p { text-align: justify; } Quote
fazlionline Posted October 5, 2009 Author Report Posted October 5, 2009 The paragraph is justified Actually there was no problem with paragraph itself, but when I past the paragraph, the whole table moves to left of the document, while I have set it to center. Quote
Andrea Posted October 5, 2009 Report Posted October 5, 2009 Can you post a link to your problem page and point out which part you're pasting? Quote
fazlionline Posted October 5, 2009 Author Report Posted October 5, 2009 (edited) Here is the link http://www.fazlionline.com/dilawar/ I have wrote the problem I have also discussed another problem I have posted in killersites today I cannot align the top menu to the center Edited October 5, 2009 by fazlionline Quote
Andrea Posted October 5, 2009 Report Posted October 5, 2009 Look at the horrible code mess you have there - several sets of html and body tags. I'm surprised anything is working at all. Quote
lm Posted October 5, 2009 Report Posted October 5, 2009 when you finish writing HTML for the page, validate it before aligning anything with CSS, it will spare a lots of time ( makes no sense to fix CSS if HTML is not written correctly). Quote
fazlionline Posted October 7, 2009 Author Report Posted October 7, 2009 but i was unable to find any HTML error there have anyone found it on any line? Quote
Andrea Posted October 7, 2009 Report Posted October 7, 2009 An HTML document has ONE docytpe and one set each of html, head, and body tags. Yours has several each. There may be more errors than that, but I didn't look beyond that - it's too messy. so clean that up, then run your page through the validator, and fix whatever else shows up - and use an HTML strict doctype. Quote
falkencreative Posted October 7, 2009 Report Posted October 7, 2009 but i was unable to find any HTML error there have anyone found it on any line? This is what the validator finds (showing errors): http://validator.w3.org/check?uri=http://www.fazlionline.com/dilawar/ As Thelma said, it looks like most of the errors revolve around extra sets of html/head/body tags in your document. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.