/    Sign up×
Community /Pin to ProfileBookmark

Why is my HTML document using CSS from a CSS document that’s not even attached to it?

Alright, I got a dilemma. I’m trying to create a winter holiday-theme site template, and right now I’m working on the page templates for each holiday.

However…..my documents for the holiday page templates are using CSS, from an external CSS document that isn’t linked to them.

For example, I’ve set the width of a #Container to 73.5% on a CSS document specifically for the index page. So I created another CSS file, one to be used specifically for the holiday page template, and set the #Container of that particular file to 90%, and attached it to the holiday page template I was working to that very same CSS file.

However, I noticed that the container div wasn’t 90%, and was still using the 73.5% property from the #Container on the other CSS file – which isn’t even linked to the holiday page template. As a matter of fact, no matter what I did for the holiday page template CSS, which the one linked to the holiday page HTML files, the 73.5%-wide #Container would not budge, even I deleted the entire CSS for the holiday pages.

The only thing that would delete it…is if I deleted the container div from the HTML document.

The CSS file for the holiday pages is in the same folder as that contains the CSS file used for the index page (where…ALL the CSS files will be stored), that’s all I could think of.

Can anyone tell me why this is going on?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@Cossack944authorJul 23.2017 — [B]Never mind, I've found the problem.[/B]
Copy linkTweet thisAlerts:
@JMRKERJul 23.2017 — Instead of saying you solved your own problem,

how about providing what you did so that others

can avoid a similar initial fate prior to resolution?
×

Success!

Help @Cossack944 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.9,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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