/    Sign up×
Community /Pin to ProfileBookmark

only firefox to read

hi,

I was wondering how I could get the only firefox to read certain code. Only things like padding and such but I only want firefox to pick it up and not IE or any other browser.

Thanks
k0r54

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FerretJul 29.2007 — I know you can make your CSS such that IE can't read it using parent>child tags, but your page will be read by Safari, Opera, etc.

Example:

element {attribute: 3em} /* will be read by every browser */

parent>element {attribute: 15em} /* will not be read by IE, cause IE doesn't know what it means, but because it's later in the code than the first element, browsers that read parent>child syntax (basically every browser but IE) will use this second one instead */
Copy linkTweet thisAlerts:
@byeeeJul 29.2007 — or use the

  • * html element {}


  • trick so only IE reads the code.
    ×

    Success!

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