Previous 1 2 Next 18 Replies Latest reply: Nov 17, 2009 7:09 PM by Royden Kading
Danoflorida Level 1 Level 1 (0 points)
I am building a website with HTML and CSS using the Textedit. It appears that I cannot edit a css stylesheet in Textedit after the initial save. Is this true and how do I get around it? Making a new CSS stylesheet with every change is just not an option. Please help

mac pro, Mac OS X (10.6.1)
  • K T Level 7 Level 7 (23,700 points)
    Download and try TextWrangler instead....

    http://www.barebones.com/products/TextWrangler/
  • QuickTimeKirk Level 9 Level 9 (50,215 points)
    "Plain" text may be your troubles.
    Check the TextEdit preferences for some clues.
  • Danoflorida Level 1 Level 1 (0 points)
    Thanks for the suggestion. I've checked that and tried all those possible options and found no answer. It appears that Textedit has a set criteria for a .css file but I can't say for sure since I'm not a mac wizard. It just won't apply changes when I make it a .css file.
  • Francine Schwieder Level 6 Level 6 (19,040 points)
    I can edit css files with TextEdit with no problems whatsoever. First off, you need to make sure your css files are plain text files. Also you need to make sure you have write permissions to the file in question. TextEdit has no "set criteria for a .css file"--I don't even know what that would mean. A css file is just a txt file with the .css extension instead of the .txt extension. There are dedicated css file programs: I use CSSEdit, and my css files are set to open in that as the default editor (it has lots of nice features for creating css files), but TextEdit opens the files without difficulty and edits them. As was already mentioned TextWrangler is another nice program for editing css files. It is free, you might try it, it will display the css files with various things in color, which can be useful.

    I'm also not sure what this statement means: "It just won't apply changes when I make it a .css file." Just what is that "it" you refer to? Was the file an rtf document originally? And where are the css files you are attempting to edit? Do you have write permissions to the files and the folder they are in? You can check using GetInfo.
    Francine


    Francine
    Schwieder
  • Tom Gewecke Level 9 Level 9 (74,505 points)
    tried all those possible options


    You should have no problems editing any kind of .css, .html or whatever kind of text file if in TextEdit Preferences you make sure you set Format to Plain Text and check the boxes for Ignore Rich Text Commands..."

    I use it for such things every day.
  • Network 23 Level 6 Level 6 (11,865 points)
    Same here, no problem editing CSS or HTML if TextEdit is set to Plain Text.

    But editing CSS is much better in TextWrangler because it will color-code the syntax for you.
  • Danoflorida Level 1 Level 1 (0 points)
    Thanks for the info. TextWrangler was the tip of the day. I tried changing the preferences and didn't have much luck but who cares, TWrangler is my new friend.
  • Royden Kading Level 1 Level 1 (60 points)
    I have worked hours on this and can't seem to get it to work.
    I have changed the preferences in TextEdit to 'plain text' then save as .css (by changing .txt to .css). When I open it again it opens in Dashcode, and nothing works.
    I have tried setting it up in PageSpinner and again when I save the stylesheet it saves in Dashcode.
  • Tom Gewecke Level 9 Level 9 (74,505 points)
    it opens in Dashcode


    Do File > Get Info > Open with on your document and change it from Dashcode to whatever you want it to open with.
  • Royden Kading Level 1 Level 1 (60 points)
    Tom, Thanks, I must be losing it. Have worked on this so many hours. However, I still can't get css to work. Will just have to keep working at it.
  • Tom Gewecke Level 9 Level 9 (74,505 points)
    I still can't get css to work.


    What do you mean, it still opens with Dashcode even after you have changed the Open With setting for all such docs to TextEdit?
  • Royden Kading Level 1 Level 1 (60 points)
    Tom,
    No, I can now open .css file in PageSpinner, but still can't get the stylesheet to work. I have done a sample stylesheet and it worked, but when I apply it to my webpages, it does not work. Something I am missing. Will just keep at it.
    Thanks
    Roy
  • Royden Kading Level 1 Level 1 (60 points)
    Getting there slowly, but now have two different results, neither good.

    First: Open browser which automatically opens my homepage. Follow the links to the pages for which I am trying to change the background color. All the graphics, links are there, but the test page I am using has not changed color.

    Second: open browser, open the file I am testing by using dropdown menu File, open file. File opens with background color changed, however, all my graphics are gone, the links work, but only a small square where the graphic should show. The graphics are also gone on all the 65 pages on my site. The only page that remains ok is the index page.

    What am I missing?
  • Royden Kading Level 1 Level 1 (60 points)
    Here is my lists.css file: body {
    background-color: #FFFF99 }

    and here is what the html page is: <head><title>mypage</title>
    <link rel="stylesheet" href="lists.css" type="text/css">
    </head>

    When I put the whole html <style> in the page as: <head><title>mypage</title>
    <style type="text/css">
    body {background-color: #99FF66;}
    </style></head>
    it works fine.

    Think I have tried every combination imaginable and can't get it to work.
Previous 1 2 Next