-
1. Re: CSS in CS4: Can I create "nested styles" similar to InDesign's?
L Hickle Aug 13, 2010 8:20 AM (in response to L Hickle)In case I didn't describe my situation very well, here is a link to a sample page to show the type of set up
I'm talking about:
http://www.kkspc.com/argus/ObitsFull/Surnames/D-SurnameObits/Da/Davis.html
I'd love to be able to select all the names at once and apply a "nested" style that would automatically apply the three different class styles. It would save me a lot of formatting time.
-
2. Re: CSS in CS4: Can I create "nested styles" similar to InDesign's?
MurraySummers Aug 13, 2010 8:25 AM (in response to L Hickle)Am I making it too hard?
You are in a way. What are your skills with HTML and CSS? If 'minimal' then you are in for a rough ride. DW doesn't take kindly to that....
It would be a simple matter to define a few descendent selectors that would style everything in each of those units automatically. Does that mean anything to you?
For example -
#obitUnit { .... }
#obitUnit div { ... }
#obitUnit h1 { font-size:1.6em;margin:1em 0 0; /* gives a 'soft return' along with the next rule */ }
#obitUnit h1+p { margin:0 0 1em; }
#obitUnit p+p { font-size:x-small; }
would style -
<div id="obitUnit">
<h1>Person's Name</h1>
<p>Person's age/residence</p>
<p>Date of publication</p>
</div>
-
3. Re: CSS in CS4: Can I create "nested styles" similar to InDesign's?
BobLevine Aug 13, 2010 8:25 AM (in response to L Hickle)Off the top of my head, since you have InDesign you could actually do the text there using three paragraph styles. You can apply it easily using the "apply style then next style" command after selecting all the text.
Export that file for Dreamweaver and all the classes will be assigned. Copy and paste the code into your page and you're home free to simply create the rules for the three classes for the <p> tags.
Bob
-
4. Re: CSS in CS4: Can I create "nested styles" similar to InDesign's?
mattaca Sep 1, 2010 12:56 PM (in response to MurraySummers)I'm facing a simliar issue to this, only the differing styles are not on individual lines. Is there a way to mirror nested character styles that can not be broken up into individual paragraphs without creating additional tags? For example, "TO BAKE THE CAKE: Take 2 cups of flour..." In this style, the caps always go through one colon. There are so many instances where things like this happen and I'd love to be able to avoid tagging them with a separate XML tag. Possible?



