/    Sign up×
Community /Pin to ProfileBookmark

Newbie question

I’m using dreamweaver and I built a template for my site, [url]http://www.adriansd.com/ams/ams_home/AMS.htm[/url] . I want to make all the pages use the same css file…but I can’t figure out how to do that. Can someone please help this poor uneducated soul?

to post a comment
CSS

15 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMar 10.2005 — In the <head> section of your document:
<i>
</i>&lt;link rel=stylesheet href='your_stylesheet.css'&gt;
Copy linkTweet thisAlerts:
@TriumphMar 10.2005 — <link rel="stylesheet" href="2col_leftnav.css" type="text/css">
Copy linkTweet thisAlerts:
@TriumphMar 11.2005 — [i]Originally posted by Triumph [/i]

[B]<link rel="stylesheet" href="2col_leftnav.css" type="text/css"> [/B][/QUOTE]
Noggy's getting in before me everytime. ?
Copy linkTweet thisAlerts:
@MogauthorMar 14.2005 — but that only works if each seperate file has it's own 2col_leftNav.css file in it's directory

I want to direct all the documents to the absolute address of http://www.adriansd.com/ams/2col_leftNav.css
Copy linkTweet thisAlerts:
@TriumphMar 14.2005 — [i]Originally posted by Mog [/i]

[B]but that only works if each seperate file has it's own 2col_leftNav.css file in it's directory

I want to direct all the documents to the absolute address of http://www.adriansd.com/ams/2col_leftNav.css [/B]
[/QUOTE]
Well, then go right ahead. :lol:
Copy linkTweet thisAlerts:
@MogauthorMar 15.2005 — it dosn't work when I link them to that address, that is my probelm
Copy linkTweet thisAlerts:
@TriumphMar 15.2005 — Put it in and let us have a look.
Copy linkTweet thisAlerts:
@MogauthorMar 15.2005 — You see, this one works

<i>
</i>&lt;html&gt;
&lt;!-- DW6 --&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;!-- TemplateBeginEditable name="doctitle" --&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;!-- TemplateEndEditable --&gt;
&lt;link rel="stylesheet" href="../2col_leftNav.css" type="text/css"&gt;
&lt;/head&gt;


But This one dosn't

<i>
</i>&lt;html&gt;
&lt;!-- DW6 --&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;!-- TemplateBeginEditable name="doctitle" --&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;!-- TemplateEndEditable --&gt;
&lt;link rel="stylesheet" href="http://www.adriansd.com/ams/2col_leftNav.css" type="text/css"&gt;
&lt;/head&gt;
Copy linkTweet thisAlerts:
@TriumphMar 15.2005 — [i]Originally posted by Mog [/i]

[B]You see, this one works

<i>
</i>&lt;link rel="stylesheet" href="../2col_leftNav.css" type="text/css"&gt;


But This one dosn't

<i>
</i>&lt;link rel="stylesheet" href="http://www.adriansd.com/ams/2col_leftNav.css" type="text/css"&gt;
[/B][/QUOTE]
http://www.adriansd.com/ams/2col_leftNav.css is there so the second one should work just fine. Try emptying you cache, restarting your browser and hitting refresh a couple of times.

*edit*

Wait, are you seeing the problem in your browser or in Dreamweaver? Let me know.
Copy linkTweet thisAlerts:
@MogauthorMar 16.2005 — Yes...both places actually, well all 3 I guess you could say...Dreamweaver, IE and Firefox
Copy linkTweet thisAlerts:
@MogauthorMar 16.2005 — Actually...I just fixed something. in my experimenting, I tried not specifying an href and just using @import. I forgot I saved it and was looking at that. I just fixed it and pointed it at the this...and lo' and behold I tested and it worked. I must have done something wrong the first time I tried it. It still dosn't work in dreamweaver, but it look fine in IE and Netscape. ^__^;;
Copy linkTweet thisAlerts:
@TriumphMar 16.2005 — [i]Originally posted by Mog [/i]

[B]IIt still dosn't work in dreamweaver, [/B][/QUOTE]
I haven't used dreamweaver since the last time it mangled my code but IIRC there is an import menu item that allows you to link to an external stylesheet...do not quote me on this as I am not sure.
Copy linkTweet thisAlerts:
@MogauthorMar 17.2005 — Ok, this is proving to be overly difficult. Is there a way to link reltively to the root? ../ is up one level, but is there a way to do that to the root folder? If I could do that, I could take out the hassle of linking absolutely and not seeing it properly in the editor
Copy linkTweet thisAlerts:
@TriumphMar 17.2005 — [i]Originally posted by Mog [/i]

[B]Ok, this is proving to be overly difficult. Is there a way to link reltively to the root? ../ is up one level, but is there a way to do that to the root folder? If I could do that, I could take out the hassle of linking absolutely and not seeing it properly in the editor [/B][/QUOTE]
I don't know what system you are using but I think starting with a slash / is what you are looking to do in unix and mac but don't quote me on that...I know it works on my mac that way.
Copy linkTweet thisAlerts:
@MogauthorMar 17.2005 — xp...but the web is different than any os isnt it? If I did something specific to an OS it wouldn't display right on the web, would it?
×

Success!

Help @Mog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...