Activity Stream
48,167 MEMBERS
6728 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1.     
    #1
    I r Super Cop

    Default How to remove CSS Expression?

    I was optimizing my site using gtmetrix and i see a suggestion of removing CSS Expressions. Can anybody please help me removing it as i am not aware of how to do it. tried googling it but could not figure it out

    Below is the css code which has the expression.

    Code: 
    @import url("stylesheets/master.css");.aligncenter{display:block;margin-left:auto;margin-right:auto;} .alignleft{float:left;} .alignright{float:right;} #content img{border:3px solid #fff;max-width:616px;width:expression(this.width > 616 ? 616:true);}
    Rox Reviewed by Rox on . How to remove CSS Expression? I was optimizing my site using gtmetrix and i see a suggestion of removing CSS Expressions. Can anybody please help me removing it as i am not aware of how to do it. tried googling it but could not figure it out :| Below is the css code which has the expression. @import url("stylesheets/master.css");.aligncenter{display:block;margin-left:auto;margin-right:auto;} .alignleft{float:left;} .alignright{float:right;} #content img{border:3px solid Rating: 5
    Follow besthostingforums on FB

    Looking for an Article Writer? Check out my services here.

  2.   Sponsored Links

  3.     
    #2
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    The bold part is the CSS Expression
    #content img{
    border:3px solid #fff;
    max-width:616px;
    width:expression(this.width > 616 ? 616:true);
    }

    Change it to
    Code: 
    #content img{
    border:3px solid #fff;
    width:616px;
    }

  4.     
    #3
    Member
    Website's:
    FlowForums.com
    I've never seen anyone use an expression although I know what they are. But blaze's answer should fix you're problem.

  5.     
    #4
    I r Super Cop
    great! thanks blaze... and for the @import - should i put the full url within the href?
    Follow besthostingforums on FB

    Looking for an Article Writer? Check out my services here.

  6.     
    #5
    Member
    Website's:
    FlowForums.com
    <link rel="stylesheet" type="text/css" href="stylesheets/master.css" />

  7.     
    #6
    I r Super Cop
    dint work mate!
    Follow besthostingforums on FB

    Looking for an Article Writer? Check out my services here.

  8.     
    #7
    Member
    Website's:
    FlowForums.com
    Is your css file in the folder stylesheets?

  9.     
    #8
    Retired NinJa
    Website's:
    loledhard.com
    Quote Originally Posted by Rox View Post
    great! thanks blaze... and for the @import - should i put the full url within the href?
    OPEN up ur css master.css & copy the code, paste it in the css where u see this @import thing



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  10.     
    #9
    I r Super Cop
    yep, its in stylesheets folder
    Follow besthostingforums on FB

    Looking for an Article Writer? Check out my services here.

  11.     
    #10
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    Don't use @import to link the stylesheet. Its depreciated.
    Use link instead of @import
    Many people might not be aware of this but the usage of @import may cause some extreme performance problem when the site grows big. Even the people at W3C depreciate the usage of @import.
    Read this article to know more.
    Using @import within a stylesheet adds one more roundtrip to the overall download time of the page.
    Using @import in IE causes the download order to be altered. This may cause stylesheets to take longer to download, which hinders progress rendering making the page feel slower.
    Read More

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to remove.
    By bush in forum Web Application/Script Support
    Replies: 11
    Last Post: 11th Oct 2011, 09:36 PM
  2. Need regex search expression
    By cvrle77 in forum Technical Help Desk Support
    Replies: 4
    Last Post: 25th Sep 2011, 08:53 AM
  3. Php Regular Expression ?
    By warezrock in forum Web Development Area
    Replies: 1
    Last Post: 6th Jul 2011, 03:56 PM
  4. [Selling] Expression XenForo Theme - $20.00 - SleekVb.Net
    By GCSkye in forum Completed Transactions
    Replies: 0
    Last Post: 12th Nov 2010, 02:25 AM
  5. How to remove this
    By Flash in forum vBulletin
    Replies: 4
    Last Post: 23rd Dec 2009, 03:21 AM

Tags for this Thread

BE SOCIAL