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?
 

shakeman0

macrumors 6502a
Original poster
Jul 20, 2009
632
22
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?
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
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.
 

shakeman0

macrumors 6502a
Original poster
Jul 20, 2009
632
22
Oh ok. So I could use iweb for a basic frameworks and then work from there.
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
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.
 

adamfishercox

macrumors 6502
Aug 15, 2007
474
10
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.
 

Gabriel GR

macrumors 6502a
Jul 12, 2009
716
1
Athens, Greece
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.
 

TheVillageIdiot

macrumors newbie
Jul 25, 2009
8
0
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.
 

adamfishercox

macrumors 6502
Aug 15, 2007
474
10
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.