Can you use external CSS style sheets in IWeb?

Discussion in 'Web Design and Development' started by shakeman0, Jul 25, 2009.

  1. shakeman0 macrumors 6502a

    shakeman0

    Joined:
    Jul 20, 2009
    #1
    I was wondering if I could use an url to link to a CSS style sheet inside of an HTML snippet?
     
  2. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
  3. TheVillageIdiot macrumors newbie

    Joined:
    Jul 25, 2009
    #3
    It won't work. HTML snippets don't go in <head>.
     
  4. shakeman0 thread starter macrumors 6502a

    shakeman0

    Joined:
    Jul 20, 2009
    #4
    Can I link to a CSS to change the style for an entire Iweb page?
    If not, does true HTML code have any real use inside of iweb?
     
  5. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #5
    I guess you're right. I was messing with it, but I can't seem to get it working.

    But, you can edit the HTML later in TextEdit to add the line for the CSS file.
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    You can, but you can't do it from inside iWeb. You would need to edit the source after publishing the site to a folder. Realize though that it won't save back to iWeb and you'll need to edit it every time you publish.
     
  7. shakeman0 thread starter macrumors 6502a

    shakeman0

    Joined:
    Jul 20, 2009
    #7
    Oh ok. So I could use iweb for a basic frameworks and then work from there.
     
  8. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #8
    Could yes, but I don't recommend it. iWeb creates horrible to work with code if you're wanting to add extra CSS and such. Generally it's easier to work from scratch. You can give it a go though.
     
  9. adamfishercox macrumors 6502

    Joined:
    Aug 15, 2007
    #9
    If you're not going to use iWeb 100%, just don't use it and code it yourself. iWeb code is a huge PITA to sift through.
     
  10. Gabriel GR macrumors 6502a

    Gabriel GR

    Joined:
    Jul 12, 2009
    Location:
    Athens, Greece
    #10
    If you're capable of making a CSS file I'm pretty sure you can build the page anyway. It will take longer but you will be able to tell which line of code corresponds to what and you'll have a cleaner source with a lot more options.
     
  11. TheVillageIdiot macrumors newbie

    Joined:
    Jul 25, 2009
    #11
    I had a thought. Maybe this would work with an HTML snippet?

    <head>
    <link rel="stylesheet" type="text/css" href="index.css" />
    </head>


    Can head code go inside the body? W3 would probably spazz, but most browsers'd probably accept it.
     
  12. adamfishercox macrumors 6502

    Joined:
    Aug 15, 2007
    #12
    No, because in the context of the whole page it would look like

    Code:
    <html>
    <head>
    </head>
    <body>
    <head>
    <link rel="stylesheet" type="text/css" href="index.css" />
    </head>
    </body>
    </html>
    Head inside a body tag doesnt do much.
     
  13. TheVillageIdiot macrumors newbie

    Joined:
    Jul 25, 2009
    #13
    Or, you could spend ten seconds trying :rolleyes:

    http://awesomebox.net/iwebcss/
    View the source.
     
  14. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #14
    Which is invalid code and can become buggy so not recommended.
     

Share This Page