1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS @import

Discussion in 'CSS' started by microarm, Jul 14, 2011.

  1. #1
    recently i noticed some Wordpress theme contain this code @import *.css at the css file. Can someone explain this on how to use this method?
     
    microarm, Jul 14, 2011 IP
  2. starme

    starme Well-Known Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    actually, it's best to avoid that method - your browser doesn't cache css files loaded with @import, making your website slower.
     
    starme, Jul 15, 2011 IP
  3. microarm

    microarm Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Tnx for the reply. I'm just wondering of using it or not because it is good method to hide the css file to avoid from stealing and duplication.
     
    microarm, Jul 15, 2011 IP
  4. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That won't affect that at all

    It's impossible to hide a css file from inquisitive eyes
     
    Divisive Cottonwood, Jul 17, 2011 IP