[wellylug] OT: Argh! What is wrong?

Rob Stockley wellylug at mowgli.net.nz
Tue May 17 08:06:06 NZST 2005


The actual page is here. It's a work in progress so don't pay too much
attention to the content.
http://www.mowgli.net.nz/~rob/asterisk/asterisk_main.html

The stylesheet is referenced in the <head> section like this.

<link rel="stylesheet" type="text/css" href="./css/general.css" />

I'm thinking it's something to do with Apache. Same browser, same page
source, different result. A file:// versus http:// quirk.
Rob

> how is the general.css referenced in the html?
>
> jamie
>
> On Tue, 2005-05-17 at 08:01 +1200, Rob Stockley wrote:
>> My experience with HTML and CSS is average. My style sheet contains
>> this;
>>
>> ========general.css=========
>> .term {
>>     border-style: ridge;
>>     border-width: 5px;
>>     border-color: #7F7F7F;
>>     padding-top: 5pt;
>>     padding-bottom: 5pt;
>>     padding-left: 1em;
>>     background: #000000;
>>     font-size: 10pt;
>>     color: #FFFFFF;
>>     text-align: left;
>>     margin: 24pt;
>>     font-family: courier, fixed, monospace;
>> }
>>
>> .comd {
>>     color: #F9F517;
>> }
>> =======================
>> My webpage uses these styles like this
>> =======================
>> <div class=term><pre>
>> cyclone:~# <span class=comd>/etc/init.d/asterisk stop</span>
>> Stopping Asterisk PBX:
>> Disconnected from Asterisk server
>> asterisk.
>> cyclone:~#
>> </pre></div>
>> ===================
>> The effect I'm going for is a block that looks like a terminal window,
>>  white on black with user entered commands in yellow to make them
>> stand out.
>>
>> When I view the page directly (file://) using FireFox everything looks
>>  right. When I scp the page and stylesheet to the webserver and view
>> the  page again (http://) everything works except the highlighting in
>> yellow.  I know the stylesheet is being read because the terminal
>> window looks  right. It's just the comd style that is not being
>> applied.
>>
>> I've tried a range of different ways of attaching the style and
>> checked  the website from work with another browser. Nothing seems to
>> work. When  I view source the pages are identical. What gives?
>>
>> I am pulling my hair out! Has anyone struck this before? Any
>> suggestions  of a good IRC channel for this sort of thing? Google
>> hasn't helped.
>>
>> Rob :(
>>
>
> --
> Jamie Baddeley <wellylug at vpc.co.nz>
>
>
> --
> Wellington Linux Users Group Mailing List:
> wellylug at lists.wellylug.org.nz To Leave:
> http://lists.wellylug.org.nz/mailman/listinfo/wellylug






More information about the wellylug mailing list