Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: CSS Newbie Here

  1. #1
    Member inthezone's Avatar
    Join Date
    Sep 2002
    Posts
    59
    Member #
    192
    I want to create a CSS file that would work for every page of my site, so I guess I should link the CSS tag to a file rather than typing out the exact code on each page. How exactly would I go about doing this? As always, any help is appreciated, thanks!
    The Extent of my PHP Knowledge:

    <?php
    print "In the Zone";
    ?>

  2.  

  3. #2
    Senior Member
    Join Date
    Mar 2002
    Location
    Warwick!
    Posts
    735
    Member #
    37
    Within the <head> section add something like this:
    Code:
    <link rel="stylesheet" href="MyStyle.css" type="text/css">
    Just transfer your esxisting CSS into the file and it should work fine.
    I am non-committal, feigning blasť.

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    And if you have multiple levels of directories (like /tinyclock, /passprog, /theater, etc. as an example for here) you can put MyStyle.css at the root directory (/, or /public_html or /www in FTP) and then do this on each page:

    Code:
    <link rel="stylesheet" href="/MyStyle.css" type="text/css">
    BTW, thanks for hanging around Martin, and nice avatar
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Member inthezone's Avatar
    Join Date
    Sep 2002
    Posts
    59
    Member #
    192
    What is the best site for generating a CSS? The CSS I generated from a site doesn't work in Mozilla.
    The Extent of my PHP Knowledge:

    <?php
    print "In the Zone";
    ?>

  6. #5
    Senior Member
    Join Date
    Mar 2002
    Location
    Warwick!
    Posts
    735
    Member #
    37
    http://www.w3schools.com is very good. To validate your CSS you can use W3C's validator here. I hope it helps.
    I am non-committal, feigning blasť.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:02 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com