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
    Junior Member
    Join Date
    Aug 2007
    Posts
    7
    Member #
    15757
    My XHTML transitional document wont recognize my external css document for some reason.
    They are in the same folder, the stylesheet is layout.css and in the head of the html doc i have <link href="layout.css" type="text/css" rel="stylesheet" />
    Im trying to use IDs like <div id="footer"></div> and in my css doc I have div#footer {blabla} and the changes I put dont seem to have an effect on the xhtml document.
    What am I doing wrong

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Show us the actual URL (website link) so we can see it all.


  4. #3
    Junior Member
    Join Date
    Aug 2007
    Posts
    7
    Member #
    15757
    It's not on the web, sorry

  5. #4
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Troubleshoot:

    1. Is the CSS file in the same folder as the xhtml file?
    2. Is your browser supporting CSS?
    3. Try doing the simple rule below, to determine if its a problem in your rule-writing in CSS.
    Code:
    body{
    	color: #f00;
    	background: #0f0;
    }
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  6. #5
    Junior Member
    Join Date
    Aug 2007
    Posts
    7
    Member #
    15757
    Ok well it does recognize it but not hexadecimal color values

  7. #6
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    If you're not seeing any changes when you edit the file:
    • You're editing the wrong file (stupid, I know, but easy to do).
    • The path of your CSS and HTML files are different (#1 in Steax's post)
    • You have a syntax error somewhere in your CSS; validate it to find the problem (http://jigsaw.w3.org/css-validator/)
    • Your browser is caching the file, so while the changes are being made, the browser isn't bothering to request the file again so you never see the changes. Empty your cache.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  8. #7
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    FYI, usually Ctrl+F5 will cause an uncached refresh, I believe.


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