This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Turn off auto-code functions?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Turn off auto-code functions?
planeboy7e7

2004-08-06, 7:14 pm

I'm using CSS to build a page. I have 5 paragrpahs in one page. I use one class
to define those 5 paragraphs. I put a tag at the beginning of the code, <span
class="cpyBody"> and then I put one at the end </span>, and this covers the
format for the entire page. However, when I save and reopen the file,
dreamweaver has added a class automatically to each of the paragraphs. How do I
stop this function? I did go into Preferences and choose the "Never Rewrite
Code" option, and did double check that the correct file extensions are in
there, and they are. So any other ideas?


Thanks
Jacob

Murray *TMM*

2004-08-06, 7:15 pm

Jacob:

Your code is invalid (if I am understanding it correctly). You cannot
have -

<span><p></p></span>

since <span> is an inline tag, which <p> is a block level tag.

Because of that, DW is trying to fix things.

Why not use something like -

<div class="cpyBody"><p></p></div>

which is perfectly valid.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"planeboy7e7" <webforumsuser@macromedia.com> wrote in message
news:cf0fni$j1$1@forums.macromedia.com...
> I'm using CSS to build a page. I have 5 paragrpahs in one page. I use one

class
> to define those 5 paragraphs. I put a tag at the beginning of the code,

<span
> class="cpyBody"> and then I put one at the end </span>, and this covers

the
> format for the entire page. However, when I save and reopen the file,
> dreamweaver has added a class automatically to each of the paragraphs. How

do I
> stop this function? I did go into Preferences and choose the "Never

Rewrite
> Code" option, and did double check that the correct file extensions are in
> there, and they are. So any other ideas?
>
>
> Thanks
> Jacob
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews