Forum Moderators: open
Are there Dreamweaver users out there that have a problem with DW adding extra font tags to pages? Even though the body of a document is all one font it stll seems to add them to every <p> and within each table cell... I've looked in preferences to see if I can change this behavior, but found nothing.
Is there a reason for all of the font tags? I find that it makes the code much more difficult to edit (which often I do remotely via EditPlus). They just seem so unnecesary to me.
I was hoping HTML-Tidy would remove the unneeded tags, but no luck...
thanks! :-)
- Wendi
I know older NN versions need some odd things like putting CSS classes in table cell tags to get the page to show properly. DW doesn't do this for you. You have to hand-code it into the proper place most times.
The extra font tags could be related to this somehow.
I think you should bust out your property inspector and make sure it's font property is set to none/default.
I always use the <p> tag because I style it and that makes it easy to update the fonts for an entire site.
What version of Dreamweaver are you using?
I'd get confused, forget to set a default font, then wonder why my fonts weren't showing up correctly. I'd set the font in the Property window, then have extra font codes all over the place. There'd be extra "font color" tags everywhere too for the same reason no page default color for my fonts.
Could this be what's happening to you, gibsonRB75?
This tends to happen during use of the Property Inspector when users decide to make a block of text green, then change their mind and increase the size, and then decide they don't like it and cancel their changes. In this case, empty font tags are left hanging around because Dreamweaver has been trying to insert inline styles - one of the "bad" points of the programme, but popular with people moving from, say, Word.
Easier and better is to use the Page Properties to set up certain things like bgcolour and font properties.
Even better, and if you have MX it's a breeze because you can do it from the Property Inspector, is to set up CSS styles for the page.
And even better than that is to use an external stylesheet.
If you change the font, via highlighting the text block then you are telling dreamweaver to change from the default text which carries no DM defined font, and leaves the font to the mercy of the viewing browsers preference. DM is a bit of a bugger for doing it, but if your working off multiple templates, then you can easily get around the problem.
I am using DW4 (they haven't bought me MX yet).
I inherited the site that I maintain (which was created in DW) and it has always had a ridculous amount of extra font tags. Pages added with the templates have been as bad.
Guess I need to more cautious of how I apply fonts to pages ... and get better at CSS. ;-) At least the pages that I add can have clean code.
Thanks again!