Forum Moderators: open

Message Too Old, No Replies

css in templates in Macromedia

having trouble maintaining css in new docs based on template

         

belize

1:53 am on May 17, 2005 (gmt 0)

10+ Year Member



I am totally stumped. I have created a template in Macromedia with css, but when I create a new doc from the template, the style does not apply (it doesn't even show up in the viewable list). If I try to create and apply a new css on that new page, it says that it is not an editable attribute.

I have tried highlighting the css in the code on the template and choosing to make the attribute editable, but it still doesn't let me edit on the new page.

I have spent countless hours on this. I would really appreciate any help or advice!

stever

5:59 am on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the template, are you linking to an external CSS file?. If that is the case, make it a full URL link (or site-relative) to ensure that it will work with all pages on your site (at whatever directory level).

For page-specific CSS, make an editable region in the head in the template, which will then allow you to insert styles for that page.

I know you didn't ask this, but using the inflexible DW template system with CSS is like putting a cart behind a Mercedes. If you are using CSS-P for the design, try using includes (what kind depends on your server) for the header, navigation and footer content and allow CSS to style the page.

belize

4:16 pm on May 17, 2005 (gmt 0)

10+ Year Member



Thanks for your reply, Steve. I have to admit, I don't fully understand the best way to "file" new CSS styles that I create (I have not used any external CSS styles). I have been teaching myself to use Macromedia and I cannot find any pointers in the Help function for how to save them.

I have been creating them as a custom style and always defining them as a new style sheet with their same name so i don't get them confused.

The strange thing is that some CSS styles show up on some pages, and not on others (and I don't see why).

I will try out your other suggestions now . . .

belize

5:33 pm on May 17, 2005 (gmt 0)

10+ Year Member



I resaved the css and the options I chose made it magically appear in the new doc (created from the template) in its css list.

Now, the formatting shows up on the Macromedia screen (it didn't before), but the css formatting disappears when i view it in a web browser.

Any thoughts? Anyone? Please?

belize

6:23 pm on May 17, 2005 (gmt 0)

10+ Year Member



I am not certain exactly how, but I fixed it!