Topic: Cut and paste problem

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

Re: Cut and paste problem

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.

Re: Cut and paste problem

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

Re: Cut and paste problem

If you want it to justify your html put this in your css

p {
text-align: justify;
}

Re: Cut and paste problem

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.

Re: Cut and paste problem

Can you post a link to your problem page and point out which part you're pasting?

Re: Cut and paste problem

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

Last edited by fazlionline (2009-10-05 05:36:00)

Re: Cut and paste problem

Look at the horrible code mess you have there - several sets of html and body tags.  I'm surprised anything is working at all.

9

Re: Cut and paste problem

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).

Re: Cut and paste problem

but i was unable to find any HTML error there

have anyone found it on any line?

Re: Cut and paste problem

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.

Re: Cut and paste problem

fazlionline wrote:

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: … m/dilawar/

As Thelma said, it looks like most of the errors revolve around extra sets of html/head/body tags in your document.