/    Sign up×
Community /Pin to ProfileBookmark

myStyle styles

I have a folder called styles set up for the .css files.

<link rel=”stylesheet” href=”styles/myStyle.css” type=”text/css” media=”screen” />
<link rel=”stylesheet” href=”myNav.css” type=”text/css” media=”screen” />

The styles for the Navigation Menu are written in the myNav.css file. This file is acting strangly as it will not link to the website pages when it is deposited in the styles folder. When I place it in the styles folder I call it “styles/myNav.css” just as I would with other style sheets.
Why can this be ? ?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyJul 21.2011 — You forgot the folder name in the link tag's href attribute. You probably need to use this code instead:

<link rel="stylesheet" href="styles/myNav.css" type="text/css" media="screen" />
Copy linkTweet thisAlerts:
@webiterauthorJul 21.2011 — Hi rtrethewey,

That is the problem, when I place the folder name in the link tag's href attribute I get a blank navigation bar and I can not figure out why!
Copy linkTweet thisAlerts:
@Frank62Jul 28.2011 — Hey Webiter,

We need matters online for that question. Can't tell with the info you're providing.
Copy linkTweet thisAlerts:
@webiterauthorAug 22.2011 — Sorry, gone away for a while. Link at www.webitry.net
Copy linkTweet thisAlerts:
@Frank62Aug 22.2011 — It has to do with the background url of the navMenu. If you put the style sheet in that folder, the url should be: ../album/sprites_navbar.jpg. Urls in style sheets are always relative to the style sheet, not to the file it is called into.
×

Success!

Help @webiter 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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