Character vs paragraph styles (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


jsgeare -> Character vs paragraph styles (10/12/2005 9:30:59)

'Splain it to me: When I create a user-defined "character" level style in FP03 (for an external style sheet), FP writes it out to the .css as "span.xxxxxx {and the rest of the formatting commands}. Problem is that this style then does not appear in the selector box on the styles tool bar.
"Paragraph" level styles, on the other hand, all begin with a period: (.greenheader, for example) and ARE available ('cause they start with a dot, I suppose). Soooo what do I need to do differently to get this puppy to work?
Thanks in advance for any help!




caz -> RE: Character vs paragraph styles (10/12/2005 10:40:05)

Are you using FP to write your css? I have never done that, I use a different stylesheet editor or just Notepad, then import it into the FP webs and link to it using the Format command. Then in Code view I indicate the style to be used with a period before the style name if it's a class.

Perhaps someone here can help you there. You could also give us a url, or a relevant scrap of code.




jsgeare -> RE: Character vs paragraph styles (10/12/2005 11:16:35)

Yes, using FP, but it appears that FP is just a handy interface to produce the codes for me instead of me doing it (and it also saves as a .css page of course). I actually hand code myself on the page FP lays out because copy-paste is often faster than going through the style selector dialog. FP nicely puts the period in front of styles that are related to paragraphs (you must choose one or the other in the style dialog -paragraph is the default) but it doesn't do the same when "character" is selected. Which leaves open the question....how does FP KNOW that the style is at the character, as opposed to the paragraph level anyway? Anyway, thanks for the response.




caz -> RE: Character vs paragraph styles (10/12/2005 12:27:12)

I just tried your way in FP and this is what I did,

Highlight the code in Code View, then choose Format>Style and select user-defined styles. Choose New...Give the new style a name then choose Style Type as Character and choose Format to apply formatting if you wish. This then results in the required style being embedded in the head of the page, eg.
<!--
span.w { text-decoration: underline }
-->
So in your code you would use this, <whatever><span class="w">W</span>hy</whatever>

Of course you can also modify or delete that style via FP too.

But it looks as if you will have to manually add the html '<span class="w">W</span>' in code view.




jsgeare -> RE: Character vs paragraph styles (10/12/2005 13:55:29)


Hey Caz, thanks... this almost seems like setting a style "by example" and wouldn't that be a plesant tool? Just highlight something and tell FP to make a user defined style out of it....another day, maybe...

Thanks again.

-S




dpf -> RE: Character vs paragraph styles (10/12/2005 15:30:56)

quote:

Just highlight something and tell FP to make a user defined style out of it
thats what dreamweaver does.........




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125