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 7 of 7
  1. #1
    Senior Member ChrisTheCracka's Avatar
    Join Date
    May 2004
    Location
    Bellevue, WA
    Posts
    114
    Member #
    6036
    I've been 'teching' myself css. Up to now i have been lost.
    But i think im getting it.

    If i have a CSS navigation for example
    Code:
    <div id="navcontainer">
    <ul id="navlist">
    	<li><a href="PP" title="Home">Home</a></li>
    	<li><a href="PP" title="Something ">Something</a></li>
    	<li><a href="" title="Something">Something</a></li>
    	<li><a href="" title="Something">Something</a></li>
    	<li><a href="" title="Something">Something</a></li>
    </ul>
    </div>
    that is just HTML, but it is refering to a CSS file. CORRECT!!???, where and what do i name this file, do i need a different file for all CSS thing i have or do i make just one file and add all my different CSS content??

  2.  

  3. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Hi

    Yes you're referring to a CSS file.

    Here is a quick run-down:

    Create a text file, for the sake of this example, let's call it "mystyle.css" (no quotes).

    Now, inside this file, type in

    Code:
    .navcontainer{font-weight:bold; color:blue;}
    and save and close the file.

    Now open up your HTML file. In the HEAD section, type in the following:

    Code:
    <link href="mystyle.css" rel="stylesheet" />
    Now save and close the file. Make sure both files are in the same directory. Open up your HTML file in a browser, and you should see that your list is bold and blue.


    A single CSS file can contain ALL of the CSS classes. You can also link in more than one CSS file per page (useful for keeping things tidy) as per the code above.

    Hope this helps. Please post back if you need more info.
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  4. #3
    Senior Member ChrisTheCracka's Avatar
    Join Date
    May 2004
    Location
    Bellevue, WA
    Posts
    114
    Member #
    6036
    Ok thanks, when i have a DOCTYPE is that basically doing the same thing??

  5. #4
    Senior Member teal's Avatar
    Join Date
    Dec 2003
    Posts
    247
    Member #
    4319
    Nope, that link tag is the only way to link to an external style sheet.
    Whoth steps forth to mock the teal? Whom couldst say a color superior!

    Proclamith me, it cannot be done.

  6. #5
    Senior Member ChrisTheCracka's Avatar
    Join Date
    May 2004
    Location
    Bellevue, WA
    Posts
    114
    Member #
    6036
    ok

  7. #6
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Without getting too technical, the DOCTYPE is the "DOCument TYPE", and it tells the browser what it is dealing with (HTML, XHTML, XML, etc...).

    If you really want to know, post back
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  8. #7
    Senior Member ChrisTheCracka's Avatar
    Join Date
    May 2004
    Location
    Bellevue, WA
    Posts
    114
    Member #
    6036
    Works for me, take a look at my post about sizing though, i just learned CSS


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 03:08 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com