Forum Moderators: phranque

Message Too Old, No Replies

Creating Custom Format Tags In DreamWeaver

Is this possible?

         

skibum

4:54 am on Feb 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In order to make applying styles to specific words or links easier in DreamWeaver, is there any way to add and define new tags that will appear in the Format dropdown menu that contains the H1-H6 in the Properties window?

That way you could define a style for an out-going link one, way an internal link another way, and not have to go in and mark up everything by hand...

Or is there some other creative way to make this easier - its a static site, no DB behind it.

Syren_Song

4:59 am on Feb 5, 2003 (gmt 0)

10+ Year Member



If you use css to define your styles, then right-click, they'll be in your dropdown menu. Is that what you're looking for?

aus_dave

5:00 am on Feb 5, 2003 (gmt 0)

10+ Year Member



I use CSS in DW to create custom styles and redefine HTML tags like H1 etc. Is that what you are looking for skibum?

skibum

5:19 am on Feb 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I guess what I'm hoping to do is essentially create something like a <div class="internal">link within site </div> and <div class="external">link to another website</div>, be able to highlight a section of text and choose and apply one of these markups by selecting it from some kind of menu, just so I don't have to go in and manually enter the div selector every time I want to use it. It would appear in different places in each page so I don't think a template would work.

Make any sense? :)

Just built the style sheets in notepad and linked to em from the <head> of each page, haven't even tried to build them in DreamWeaver yet but DW does seem to recognize them as long as they are in the site folder.

Syren_Song

5:23 am on Feb 5, 2003 (gmt 0)

10+ Year Member



If you're trying to do what I think you are, why not just add the class to the href? You shouldn't even have to bother using div tags to add the formatting.