Skip navigation
YetiBlueYeti
Currently Being Moderated

DW CS3: Template & CSS Rules problems

Apr 24, 2012 7:17 AM

Dreamweaver CS3 Templates and CSS Rules.

 

I've built a basic html page with a header, navigation links and main content area, then saved this as a template with the content area as the edit region.

 

When I create new html pages from this template I want to insert Divs in the edit region for each new page, which I can successfully do, but for some reason Dreamweaver is not allowing me to create new CSS Rules for each new Div? So I'm not able to control position, text layout, colours etc for the new content. So my question is how do I do this?

 

I got around this with the current website by creating the template with virtually all of the content for the entire website firstly, then deleting as necessary for each page, which I know is the wrong way to build html site pages from a template!

 

I wonder if someone could please point me in the right direction to get me back on track? Any pointers would be very much appreciated.

 

Thanks in advance.

 
Replies
  • Currently Being Moderated
    Apr 24, 2012 7:39 AM   in reply to YetiBlueYeti

    Make sure you have an editable region in the <head> portion of your template.

    This is where your new CSS and/or your links to external CSS files go.

    (And meta tags and javascript too.)

     

    ~codeDawg

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 7:50 AM   in reply to YetiBlueYeti

    I should have written my comment like this:

    Make sure you have an editable template region in the <head> portion of your html.

     

    You have to do this on the template file - not the html file.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 8:06 AM   in reply to YetiBlueYeti

    Hmmmm - do you have anything in the head region?  Like a meta tag?

    It might be helpful if I can have a look at your template or html file.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 8:53 AM   in reply to YetiBlueYeti

    I'm not seeing any template information in the code.

    Looking for something like:

     

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <html><!-- InstanceBegin template="/Templates/10-issue-norightsidebars.dwt" codeOutsideHTMLIsLocked="false" -->

    <head>

    <!-- InstanceBeginEditable name="meta" -->

     

    <!-- InstanceEndEditable -->

    </head>

     

    Is your page on a live server?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points