/    Sign up×
Community /Pin to ProfileBookmark

conditional usage <!–[if IE 6]>

Can I use it in an embeded as well as an external? Which is best practice?

external:
<!–[if IE 6]>
<link rel=”stylesheet” type=”text/css” href=”ie-6.0.css” />
<![endif]–>

embeded:
<!–[if lt IE 7]>
<style>
#footer .search
{
margin-top: -1.6em;
}
</style>
<![endif]–>

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelNov 07.2007 — Both are valid. I tend to leave my CSS 'internal' but advocate making the CSS being an [I]external[/I] file.

I mostly 'do' internal CSS for posting purposes so I don't have to cull two code-boxes. I also find 'grabbing' other's code for assistance easier when internal, because if the CSS is 'internal' (before "</head>") and I can lift everything into my HTML-editor faster and run with it..
×

Success!

Help @earth2mac 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,
)...