Forums

This topic is locked

How to tell DW to not use CSS

Posted 24 Jan 2005 18:09:28
1
has voted
24 Jan 2005 18:09:28 TJ Elmore posted:
I would like to tell DW that the current document im working on (single document) should not use classes and styles.. how do i do so?

I'm designing a basic page for a php script and everytime i enter text in my html document and change it's font size, a new style class is created. I would like DW to juz apply the tags

<font type="verdana" size="3">

or similar to the particular text im editing.. not create "Style3" or so.. <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

how do i do this?

tea

Replies

Replied 24 Jan 2005 18:42:46
24 Jan 2005 18:42:46 Simon Martin replied:
Change it in Preferences
Edit&gt;Preferences&gt;General
Use CSS instead of HTML tags - make sure this is not checked

Just set it back when you've done with the document



Edited by - ganseki on 24 Jan 2005 18:43:32
Replied 24 Jan 2005 19:21:32
24 Jan 2005 19:21:32 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Change it in Preferences:
Edit&gt;Preferences&gt;General
Use CSS instead of HTML tags - make sure this is not checked

Just set it back when you've done with the document<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Also, when using &lt;html&gt; text (font tags) you will see an "A" icon in the properties bar. To switch to CSS mode, and maybe back again, click the "A", or CTRL+Click the "A"... I forgot but, I know you click it and it swaps between HTML and CSS modes.

I never went back, btw. <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
Replied 25 Jan 2005 03:00:51
25 Jan 2005 03:00:51 TJ Elmore replied:
ahh.. finally.. i knew i was missing something!! gracias guys!

@Chris
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>I never went back, btw.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Never went back to HTML? or CSS? which did/do you prefer?

tea
Replied 25 Jan 2005 03:16:51
25 Jan 2005 03:16:51 TJ Elmore replied:
ummm. i am interested in finding that "A" icon you are talking about.. it'll be so much easier coz ima be switching back and forth often....

You say it's found in the properties bar? i can't seem to loacte it.. I've extended my properties box already (advance mode).. not there.. where is this mysterious A icon?


Replied 25 Jan 2005 05:01:20
25 Jan 2005 05:01:20 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>ummm. i am interested in finding that "A" icon you are talking about.. it'll be so much easier coz ima be switching back and forth often....

You say it's found in the properties bar? i can't seem to loacte it.. I've extended my properties box already (advance mode).. not there.. where is this mysterious A icon?<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I'm sorry for the confusion, this 'A' was in <b>DW MX (not MX2004)</b>. In DW MX, you will notice (in the properties panel) the CSS ying-yang symbol when in CSS mode or an 'A' icon when in old text font-tag styles.

Since DW MX2004 is "all" CSS now, there wasn't a swapper icon needed, I guess.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>"The CSS Property inspector: You can now easily switch into CSS mode within the Dreamweaver MX Property inspector. By default, the Property inspector displays the original font tags in HTML mode. To switch the Property inspector into CSS mode, click the CSS/HTML toggle (the small "A" next to the font pop-up menu). Instead of the font tag list, you will be presented with the list of CSS styles currently available...You can always toggle back into HTML mode to work on a non-CSS based website."<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>... from www.macromedia.com/devnet/mx/dreamweaver/articles/css_practices.html
Replied 25 Jan 2005 06:34:43
25 Jan 2005 06:34:43 TJ Elmore replied:
gosh.. i guess ima have to keep visiting the preferences panel.. <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Replied 25 Jan 2005 08:12:11
25 Jan 2005 08:12:11 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>gosh.. i guess ima have to keep visiting the preferences panel.. <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle><hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Do you really use &lt;font&gt; tags that much?!?! CSS is the way! (no font tags, just restyle the &lt;p&gt;, &lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, ...)
Replied 25 Jan 2005 14:28:30
25 Jan 2005 14:28:30 Dave Thomas replied:
font tag is reportedly being phased out in the next few html releases.

as well as a few others that HTML'ers use, so it's gonna be interesting.

regards
Dave
Replied 25 Jan 2005 19:53:27
25 Jan 2005 19:53:27 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>font tag is reportedly being phased out in the next few <b>html</b> releases, as well as a few others that HTML'ers use, so it's gonna be interesting.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I did read you say "HTML", not XHTML correct?! What's coming, HTML 4.1/4.5/5?! I thought it was dead for XHTML.
Replied 26 Jan 2005 01:48:51
26 Jan 2005 01:48:51 Simon Martin replied:
Hi Tea,

Going back a few steps why don't you want to use &lt;font&gt; tags?
Is there a specific reason you're not setting up an external style sheet with a custom class for the style and then applying that to the text you want

Just strikes me that if we know the whole problem and its history then there might be another solution to your problem and if we tackle that then you might be able to use CSS happily again.

Live the life you love
Love the life you live

Simon

Edited by - ganseki on 26 Jan 2005 01:49:42
Replied 26 Jan 2005 03:01:59
26 Jan 2005 03:01:59 TJ Elmore replied:
hi guys..

well, i am a big CSS user.. however, there are just some instances where i need the font tags.. simplified styling solution i like to call it..

for this particular purpose, i am developing a PHP web application.. some of its output are just one liners.. for example, when you dont fill in the required boxes you get:

echo "ERROR: Please fill in the box called "User Name";

I want to make the "error" is in red, and a little bigger.. the rest of the text is black, and smaller font.. the "User Name" text is in another color..

now.. just for that one line i'd hate to have to create/maintain CSS for it. and as you noticed, i dont even declare &lt;HTML&gt;&lt;/HTML&gt; in that output..

I have many other reasons for this good old FOnt tags..
Replied 26 Jan 2005 05:48:31
26 Jan 2005 05:48:31 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>...well, i am a big CSS user.. however, there are just some instances where i need the font tags.. simplified styling solution i like to call it...I want to make the "error" is in red, and a little bigger.. the rest of the text is black, and smaller font.. the "User Name" text is in another color..I have many other reasons for this good old FOnt tags.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I would think you'd go for &lt;span&gt; tags over font-tag. <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

Also, mmm, what other reasons? *ears perk up*
Replied 26 Jan 2005 06:26:36
26 Jan 2005 06:26:36 TJ Elmore replied:
well, there are lots of other reasons mate.. another example is FLASH.. when i output html from php or make basic pages for simple displaying, i make sure it can be displayed properly in flash... html css dont work in flash mate.. i can make css for flash, no problem.. but that's a longer way around compared to making 1 page that can be displayed as stand alone, or within the dynamic textfields of flash..

my list goes on..
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replied 26 Jan 2005 12:18:12
26 Jan 2005 12:18:12 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>...example is FLASH.. when i output html from php or make basic pages for simple displaying, i make sure it can be displayed properly in flash... html css dont work in flash mate...<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Ah! You are correct sir. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

I've been XHTML nuts for couple years now, so you'll excuse that reply of &lt;span&gt; tags, hehe.

Reply to this topic