How to apply CSS styles on SSI elements

Discussion in 'CSS' started by moshin, Mar 18, 2008.

  1. #1
    I have been struggling to apply my css styles to SSI elements on page. I can apply styles to plain text that is being called from external html files. but when it contains a link all the links show up as standard blue links. Now should I be applying css within the external file or the area on my page where the external files are displayed, Please advise? :(
     
    moshin, Mar 18, 2008 IP
  2. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have a link to your site? It would be much easier to troubleshoot if we could look at what was happening.
     
    ChaosFoo, Mar 18, 2008 IP
  3. moshin

    moshin Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry mate i cant show the site here,,,you know why :) I appologise for being so thick :) but i would appreciate if you get my question....its just that styles dont apply to ssi appearing on the page, though i have tried applying it on page css and also by styling within the ssi files.
    I believe other designers have encountered the same issue, if so, please help!!!
     
    moshin, Mar 18, 2008 IP
  4. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, let me ask you this. What type of server side includes are you using? PHP? ColdFusion? shtml? Your CSS should work with all of these, or any server side includes. That is why I think there may be a different problem.
     
    ChaosFoo, Mar 18, 2008 IP
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #5
    Only time I have seen issues with CSS would be if the include was through javascript. But that isn't SSI. Pretty much has to be something else.
     
    shallowink, Mar 18, 2008 IP
  6. moshin

    moshin Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I am using simple shtml SSI with the external files being html and txt, that contain links. for example a column which has text is being called from a .txt file and i want it to appear orange so i apply the css on the area where the ssi is called, which is a <td> and it appears orange. but when i try to apply css on the footer area on the page ( agan a td) where the ssi is footer.html to make the links in the same colour as my theme it wont work? . I have even tried applying css within the footer.html but it just appears as standard blue html links. :(
     
    moshin, Mar 18, 2008 IP
  7. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Like I said earlier. Your problem is most likely has nothing to do with your includes. Likely your CSS is just incorrect. I doubt anyone will be able to tell you what the problem is without some code, or a link.
     
    ChaosFoo, Mar 18, 2008 IP
  8. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #8
    are you applying the style to the TD or to the A ? If its to the TD, any A rules applied will override.
     
    shallowink, Mar 18, 2008 IP
  9. moshin

    moshin Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hey guys! cheers for the help and advise PROBLEM SORTED, I was applying style tag to both TD and A but it wouldnt work for some reason. I created a div within the TD and it started to work, will investigate the issue later but for now my client is happy so I am happy :) thanks for the help Chaos Foo and Shallowink
     
    moshin, Mar 20, 2008 IP