Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shakeman0

macrumors 6502a
Original poster
Jul 20, 2009
632
22
I was wondering if I could use an url to link to a CSS style sheet inside of an HTML snippet?
 
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?
 
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.
 
Oh ok. So I could use iweb for a basic frameworks and then work from there.
 
Oh ok. So I could use iweb for a basic frameworks and then work from there.

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.
 
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.
 
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.
 
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.