ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CSS Linking - EE Install, MAMP Problem

November 23, 2011 7:01pm

Subscribe [1]
  • #1 / Nov 23, 2011 7:01pm

    crossborders

    6 posts

    Currently installed EE (2.3.1) using MAMP / phpMyAdmin. In MAMP preferences, the document root is /Users/admin/Sites/. Therefore, my project resides in /Users/admin/Sites/NameOfProject with all my EE system files.

    My CSS folder is also in the root of this folder (/Users/admin/Sites/NameOfProject/css/). My templates (with Save as File enabled) are located in the root as well (/Users/admin/Sites/NameOfProject/templates). This templates folder has 777 permissions.

    I referenced this CSS in an embed for all my templates so the link to the css remains consistent.

    <link rel="stylesheet" href="css/styles.css"/>

    The index page renders the CSS perfectly, however, the other templates do not pick up the CSS.

    How do I configure the CSS in my templates so that all my templates render it without having to code it absolutely (i.e. http://localhost:8888/NameOfProject/css/styles.css). I’d like it to be relative so that I can push live without having to go in and change this.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases