Forum Moderators: not2easy

Message Too Old, No Replies

SSI conflicting with CSS?

         

Tyu_Utamara

9:01 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



Hello, I'm new here ^^;

I've been redesigning my site, converting it to CSS. But I have ran into a bit of a problem. I would like to use SSI in my html for my sidebar so I only have to update one file. However, my sidebar is not showing up at all. I've used SSI before, but I'm fairly new to CSS. Does CSS prevent the use of SSI, or is there some other way it has to be done in the presense of CSS?

My server DOES support SSI, so I really don't know what the problem is. If someone could help me with this problem, I'd be greatly appreciative.

TGecho

9:21 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



SSI and CSS do not conflict at all.

Did you check the source of your page to make sure the code is actually being inserted?

DrDoc

9:24 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...and Welcome to Webmaster World, Tyu_Utamara!

too much information

9:24 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Tyu_Utamara, welcome to webmasterworld!

can you post the part of your code that should do the SSI? That may help us to spot the problem.

Tyu_Utamara

9:25 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



I just checked now, and it's not adding it.. how could I fix that?

Tyu_Utamara

9:27 pm on Jan 28, 2004 (gmt 0)

10+ Year Member


<DIV id=links>
<!--#include file="sidebar.shtml" -->
</div>

Thats in my html right where I want my sidebar, but it's being a pain.

DrDoc

9:30 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...and you're positive the page gets parsed as SSI?

too much information

9:37 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



how does it work without the <div> tags? Also, check your spelling on the file name, just in case.

*added: just for kicks, try making the <div> tags all lowercase.

Tyu_Utamara

9:38 pm on Jan 28, 2004 (gmt 0)

10+ Year Member


I don't know firsthand, considering I don't OWN, nor configured the server. My host claims that SSI is enabled and apparently other people I know on that server who use it weren't having any problems that I know of.

Tyu_Utamara

9:46 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



Checked all that stuff, still not working. I even disabled my stylescript and the sidebar file still doesn't show.

My host is a liar or made a mistake? ^^;

too much information

9:48 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is one more thing to check. The location of your include file. Try putting the entire location into the include statement. http:etc if that works then you may need to work on your relative location, if not give your hosting company a call.

Farix

10:02 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



On an off chance, try this:

<!--#include virtual="sidebar.shtml" -->

This is what I use on a SSI driven site that heavily relies on CSS.

Tyu_Utamara

10:21 pm on Jan 28, 2004 (gmt 0)

10+ Year Member


Yeah, I tried the virtual as well. Thats what I usually use.

I'm not gonna worry about it anymore for now, I've given up for the time being until my host replies to my email.

Thanks for the help anyway, you guys. ^^

antsaint

11:12 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



This could be totally off the wall, but how about putting the div tags inside sidebar.shtml?

iamlost

11:51 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Two very minor things to try:
  1. replace "<" with "&lt;" and ">" with "&gt;"
  2. add a slash in you address

This would make it:


&lt;!--#include virtual="/sidebar.shtml" --&gt;

Whatever ends up solving the prob let us know - we are (at least I am!) curious types :-)

mbauser2

4:50 am on Jan 29, 2004 (gmt 0)

10+ Year Member



1) Use your browser to look at the website.

2) View source.

3) If you can see the SSI comment, then the page isn't being parsed for includes.

4) If you don't see the SSI comment, then the page is being parsed, but the SSI isn't working properly.