Results 1 to 10 of 22
-
5th Jan 2012, 05:48 PM #1OPI r Super Cop
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: 5Follow besthostingforums on FB
Looking for an Article Writer? Check out my services here.
-
5th Jan 2012, 05:52 PM #2Too busy :|Website's:
L337Fx.com BeastieBay.netThe 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; }
-
5th Jan 2012, 05:58 PM #3MemberWebsite's:
FlowForums.comI've never seen anyone use an expression although I know what they are. But blaze's answer should fix you're problem.
-
5th Jan 2012, 06:01 PM #4OPI 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.
-
5th Jan 2012, 06:03 PM #5MemberWebsite's:
FlowForums.com<link rel="stylesheet" type="text/css" href="stylesheets/master.css" />
-
5th Jan 2012, 06:09 PM #6OPI r Super Cop
dint work mate!
Follow besthostingforums on FB
Looking for an Article Writer? Check out my services here.
-
5th Jan 2012, 06:11 PM #7MemberWebsite's:
FlowForums.comIs your css file in the folder stylesheets?
-
5th Jan 2012, 06:14 PM #8Retired NinJaWebsite's:
loledhard.com
-
5th Jan 2012, 06:15 PM #9OPI r Super Cop
yep, its in stylesheets folder
Follow besthostingforums on FB
Looking for an Article Writer? Check out my services here.
-
5th Jan 2012, 06:18 PM #10Too busy :|Website's:
L337Fx.com BeastieBay.netDon'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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to remove.
By bush in forum Web Application/Script SupportReplies: 11Last Post: 11th Oct 2011, 09:36 PM -
Need regex search expression
By cvrle77 in forum Technical Help Desk SupportReplies: 4Last Post: 25th Sep 2011, 08:53 AM -
Php Regular Expression ?
By warezrock in forum Web Development AreaReplies: 1Last Post: 6th Jul 2011, 03:56 PM -
[Selling] Expression XenForo Theme - $20.00 - SleekVb.Net
By GCSkye in forum Completed TransactionsReplies: 0Last Post: 12th Nov 2010, 02:25 AM -
How to remove this
By Flash in forum vBulletinReplies: 4Last Post: 23rd Dec 2009, 03:21 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...