Results 1 to 2 of 2

Thread: how to get css to work

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    6

    how to get css to work

    hi, im a total noob when it come to linux, anyhow i've manage to get up an apache2 web server, with basic configuration. I want to implement CSS, but i can't seem to get it to display the result on my web page, any idea what im doing wrong?

    i have every under /home/user/public_html/

    i have this in my index.html

    <html>
    ...
    ...
    <link rel='stylesheet' type='text/css' href='mycss.css'
    ....
    ....
    </html>


    my css script:

    td { color: #000000; }

  2. #2
    Senior Member registered user
    Join Date
    Aug 2004
    Location
    Sydney/Australia
    Posts
    311
    Open one of your saved html pages in an editor and see how they do it.

    For example:

    Code:
    <link rel="StyleSheet" href="themes/ExtraLite/style/styleNN.css" type="text/css">
    That is a sever generated page with the path used being recognised as relevent to the servers configured top directory. Which ids basically what you seem to be looking for.

    Or if you arn't using a local server, then you would need to use an absolute path.

    Some browsers will have a "preferences" option to use a local stylesheet. In that case the page configured path will be over-ridden, but the local absolute path will need to be supplied as a parameter to the browsers preferences.

    In opera i have ...

    Avanced page -> content -> Style options -> My style sheet -> /home/jmd/styles/default.css

    Your example above just lacks a full path ... I'd try creating a directory under your servers "root" directory and make the path look something like

    "style_directory/mycss.css"

    or possibly

    "/style_directory/mycss.css"

    By the way, style sheets are a really handy way to get different sites to render their pages -=- Your Way -=- (grin).

    As they all seem to run very similar site sw, mostly, a lot of the "class" labels and such will be the same. So by doing a "wget" on their sheet(s), a person can easily construct a configuration suitable to themselves. That will work with pages from a number of different sites. As long as the browser allows for a local sheet to over-ride the sites of course.

    Site pages used to drive me totally crazy untill i stumbled on that trick


    jm

Similar Threads

  1. Mozilla profiles work for Windows and won't work for Musix
    By ml2 in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 10-23-2007, 08:36 PM
  2. Replies: 1
    Last Post: 02-28-2005, 12:32 AM
  3. Soundcard Yamaha don't work under K3.3, work under K3.2
    By Mokoshi in forum Hardware & Booting
    Replies: 3
    Last Post: 02-17-2004, 04:52 PM

Posting Permissions

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


HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%) picture

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)

$45.00



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



HUS726060ALA640 HGST Ultrastar  6TB SATA 6Gbps 7.2K 3.5

HUS726060ALA640 HGST Ultrastar 6TB SATA 6Gbps 7.2K 3.5" Hard Drive OF21860

$129.99



Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5

Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$159.99



Hitachi  / HGST Travelstar HTS541010B7E610 1TB 2.5

Hitachi / HGST Travelstar HTS541010B7E610 1TB 2.5" SATA III HDD

$29.99



HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5

HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5" Internal Desktop Drive 100% Health

$78.00



Seagate ST2000NM0045 2TB 3.5

Seagate ST2000NM0045 2TB 3.5" 12Gb/s 128MB 7.2K RPM SAS HDD P/N: 1V4204-002

$24.99



HDD 3.5

HDD 3.5" SATA Hard Drive with Windows 10/Win 11 64x Installed Legacy

$35.00



Toshiba 1TB 2.5

Toshiba 1TB 2.5" SATA HDD MQ01ABD100V 5400RPM 9.5mm Laptop Internal Hard Drive

$51.99