Problems with SSI and CSS

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Problems with SSI and CSS

    I am building a web site that for every page I am wanting to add links
    to 2 external CSS files held in a styles folder. One CSS file is for
    the main part of the text (main.css) and the other for the leftside
    linkbar (linkbar.css). The link bar will be a complete ssi file
    (linkbar2.ssi) that consists of 1 table (1 column and 2 rows). I am
    having problems when I add both css files to my page and also add the
    ssi linkbar. I am only having problems with activating the linkbar css
    file while the main css file seems to work ok. Both stylesheets need
    to render text in the same table - the linkbar in the first column and
    the main text in the middle column. Even if I try to ensure it renders
    the first column in the <td> tag for the linkbar and the 2nd <td> tag
    for the main text it seems to render all of the page as the "main" css
    file and does not independently render the "linkbar" differently.

    If I add the linkbar ssi file to another part of the page and then
    action the linkbar stlyesheet in the same way it still does not work.
    However if I action the linkbar css file to part of the page which I
    have created in the page itself (i.e: I have not linked a ssi file)
    then it works fine.

    Is there a problem with css and ssi that I am not aware of? Even when
    I upload to a test server it still renders it incorrectly. Should I be
    making the files document or site root relative? Should I have the ssi
    files directed as a file or virtual? Will any of these things make a
    difference?

    I have put the test page onto a folder on another server of a web site
    I have created, which can be found at:
    [url]http://www.risedale.co.uk/greyfriars/fixtures.shtml[/url]

    While it looks ok the linkbar text should be 10px while the main text
    should be 12px. The linkbar text renders the same as the main text.
    The strange thing is I have the same setup of css and ssi actions in
    the main website at [url]http://www.risedale.co.uk/[/url]

    Any help would be grately appreciated
    Many Thanks
    Steve

    The page code I am having problems with is:

    <link href="/greyfriars/styles/leftbar.css" rel="stylesheet"
    type="text/css">
    <link href="/greyfriars/styles/main.css" rel="stylesheet"
    type="text/css">
    </head>

    <body bgcolor="#FBED46" leftmargin="0" topmargin="0">
    <!--#include virtual="/greyfriars/top.ssi" -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="107" class="leftbar">
    <!--#include virtual="leftbar2.ssi" -->
    </td>
    <td align="left" valign="top"><img
    src="/greyfriars/images/sections/fixtures.jpg" width="250"
    height="86"><br>
    <table width="100%" border="0" cellpadding="5" cellspacing="0"
    class="main">
    <tr>
    <td valign="top"><p>The fixtures for this season are: </p>
    <p>1</p>
    <p>2</p>
    <p>3</p>
    <p>4</p>
    </td>
    </tr>
    </table></td>
    <td width="100">&nbsp;</td>
    </tr>
    </table>


    While the code for the ssi file for the linkbar is:

    <table width="107" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left" valign="top"
    background="/greyfriars/images/main/leftbar.jpg" >
    <p><img src="/greyfriars/images/main/features.jpg"
    width="100" height="20">
    <a href="#">Latest News</a><br>
    <a href="#">The Main Feature</a><br>
    <a href="#">What The Papers Say</a><br>
    <a href="#">Soccerbabe of The Week</a></p>
    <p><img src="/greyfriars/images/main/matchday.jpg"
    width="100" height="20">
    <a href="#">Fixtures</a><br>
    <a href="#">Results/Stats</a><br>
    <a href="#">League Table</a><br>
    <a href="#">Match Reports<br>
    <br>
    </a><img src="/greyfriars/images/main/players.jpg"
    width="100" height="20">
    <a href="#">Player Profiles</a><br>
    <a href="#">Featured Player<br>
    <br>
    </a><img src="/greyfriars/images/main/ourclub.jpg"
    width="100" height="20">
    <a href="#">Club History</a><br>
    <a href="#">Acheivements</a><br>
    <a href="#">Find Us</a><br>
    <a href="#">Club Shop</a><br>
    <a href="#">Contact Us</a>
    </tr>
    <tr>
    <td height="15" align="left" valign="top"><img
    src="/greyfriars/images/main/bottomleftbar.jpg" width="107"
    height="15"></td>
    </tr>
    </table>
    Steve Jackson Guest

  2. Similar Questions and Discussions

    1. problems with 8.0 Rc4
      I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm...
    2. problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
      You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will...
    3. IE6 problems
      I have a login script to a website where a user logs in through a standard webform with a username and password that needs to be validated. My...
    4. I having problems with IIS
      I just tried to view a page that I had earlier on my own personal web site and was not able to view it. I then tried just plain old localhost and...
    5. Why am I Having Problems ?
      On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires...
  3. #2

    Default Re: Problems with SSI and CSS

    Ok, to simplify matters:
    I am trying to make sure that my linkbar will have link, visited,
    hover and active rules that will be different to that of the main body
    of the text. Linkbar having 10px while the main body of the page to
    have 12px. Seems as though the problem is contained in 2 areas:
    1. There are 2 external stylesheets that clash and 1 overruns the
    other.
    2. Any .ssi that has text will always have the attributes of one of
    the stylesheets and remain the same, even if I add the styleheet
    properties to the column the .ssi file is contained in. It seems as
    though the ssi file will always have the first stylesheet attributes
    no matter what.

    Any advise on how having 2 different font sizes for linked, visited,
    hover, active states can be achieved on the same page either by
    modifying what I have done or taking another approach to the problem.

    Many Thanks
    Steve Jackson
    Steve Jackson Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139