SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation templates in Dreamweaver CS 3

    When I tried creating a page using this template and placed it in the "season" folder off the root like this


    /
    /css
    stylesheet.css
    /season
    regularseason.htm

    When I previewed regularseason.htm in the browser, it was just text and none of the styles showed up. In the regularseason.htm file, shouldn't the link to the stylesheet read
    Code:
    <link href="../css/stylesheet.css" rel="stylesheet" type="text/css" />
    rather then what the template produced
    Code:
    <link href="/css/stylesheet.css" rel="stylesheet" type="text/css" />
    How do I code the template to always link the stylesheet to the css folder off the root?

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a reason why you are not referring to the css file with an absolute url such as h t t p : / / [blahblah-dot-com]/css/stylesheet.css?[/url] (instead of using the ../css) That would solve it.


    Quote Originally Posted by hockey_fan View Post
    When I tried creating a page using this template and placed it in the "season" folder off the root like this


    /
    /css
    stylesheet.css
    /season
    regularseason.htm

    When I previewed regularseason.htm in the browser, it was just text and none of the styles showed up. In the regularseason.htm file, shouldn't the link to the stylesheet read
    Code:
    <link href="../css/stylesheet.css" rel="stylesheet" type="text/css" />
    rather then what the template produced
    Code:
    <link href="/css/stylesheet.css" rel="stylesheet" type="text/css" />
    How do I code the template to always link the stylesheet to the css folder off the root?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •