hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Validate CSS opacity
Reply

Forum Jump

Validate CSS opacity

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Temporarily Suspended
 
Join Date: Nov 2011
Posts: 146

Validate CSS opacity


I use this CSS code to achieve an opacity of 25%:
Code:
background: rgba(127,127,127,0.25)
Whilst this code works fine, it does not validate as CSS 2.1 due to the opacity part -> 0.25.

I was wondering if someone knew a correct way of doing what my code does with CSS 2.1?



Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: May 2009
Location: Area 51
Posts: 1,282
I don't think there is a way to validate opacity with CSS (I could be wrong). Of course you could always use a transparent image to achieve this.

__________________
Zomex - We specialize in > web hosting templates < New responsive template!
We offer the best web hosting templates (WHMCS and/or Wordpress based!)
█ We also provide > WHMCS Configuration < Integration & web hosting business setup

  #3  
Old
Temporarily Suspended
 
Join Date: Nov 2011
Posts: 146
Yeah, transparent image my have to be the way to go to achieve validate code. Grrrrrrr

See, I'm a strong advocate for using web standards, but when standards don't keep up with the times it makes it hard to justify why its important to use them. We have a long way to go in computers.


Last edited by FinalFrontier; 12-19-2011 at 06:33 AM.
Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: May 2009
Location: Area 51
Posts: 1,282
Quote:
Originally Posted by FinalFrontier View Post
Yeah, transparent image my have to be the way to go to achieve validate code. Grrrrrrr
Yeah, it's definitely annoying although in most cases I prefer to save a lot of time then attempt to validate these type of things. Overall I think validation is a good thing but sometimes it makes more sense to use better methods that may show as errors.

__________________
Zomex - We specialize in > web hosting templates < New responsive template!
We offer the best web hosting templates (WHMCS and/or Wordpress based!)
█ We also provide > WHMCS Configuration < Integration & web hosting business setup

  #5  
Old
Temporarily Suspended
 
Join Date: Nov 2011
Posts: 146
Quote:
Originally Posted by zomex View Post
Overall I think validation is a good thing but sometimes it makes more sense to use better methods that may show as errors.
Indeed zomex. I've decided to stick with the method I am using. I have already made an exception for overflow-x, so I'm just going to make an exception for this opacity thing also. Transparent image is just ridiculas in 2011!
I don't know why it takes W3C a decade to make a web standard. You can make an operating system in that time.

  #6  
Old
Junior Guru
 
Join Date: Oct 2009
Location: Florida
Posts: 176
Why are you validating against CSS2.1?
If you're going to be using CSS3 features, just select CSS3 in the options for the validator, it'll work just fine.

  #7  
Old
WHT Addict
 
Join Date: Nov 2009
Posts: 119
hi

have you try his ?

Quote:
filter:alpha(opacity=40);
opacity: 0.4;
works on all Browsers

  #8  
Old
Web Hosting Master
 
Join Date: Nov 2010
Posts: 615
Quote:
Originally Posted by FinalFrontier View Post
Indeed zomex. I've decided to stick with the method I am using. I have already made an exception for overflow-x, so I'm just going to make an exception for this opacity thing also. Transparent image is just ridiculas in 2011!
I don't know why it takes W3C a decade to make a web standard. You can make an operating system in that time.
What has been stated for opacity, also counts for overflow-x: validate against CSS3. W3C has indeed kept up with the times, your rant makes no sense.

What's this doing in Programming by the way?

  #9  
Old
Temporarily Suspended
 
Join Date: Nov 2011
Posts: 146
Jack, no I haven't tried that and I will try it later on tonight. Thanks for that.


InsDel. CSS 3 isn't a standard yet, CSS 2.1 is the latest standard, hence why I am using it.

8088, your a major noob. Who builds a website on something that isn't a standard? Take your ignorant whining else where.


Last edited by FinalFrontier; 12-19-2011 at 09:10 PM.
  #10  
Old
Web Hosting Master
 
Join Date: Nov 2010
Posts: 615
Quote:
Originally Posted by FinalFrontier View Post
Who builds on something that isn't a standard?
Mozilla, Microsoft, Google and Apple, to name a few. Oh, and you apparently.

You're welcome.

  #11  
Old
Vroom
 
Join Date: Jul 2007
Location: Ashburn, VA
Posts: 1,310
Who cares about validity as long as it works? It's not like the validity police will hunt you down if you have one line of CSS which doesn't make it though...

__________________
Preetam Jinka

Isomerous - High performance web services for business and individuals.
Bitcable Colocation, KVMs, cPanel hosting, Oracle expertise, and more.

  #12  
Old
Junior Guru
 
Join Date: Oct 2009
Location: Florida
Posts: 176
Quote:
Originally Posted by FinalFrontier View Post
InsDel. CSS 3 isn't a standard yet, CSS 2.1 is the latest standard, hence why I am using it.
Not wholly true. CSS 2.1 and CSS3 Color (including RGBA, HSLA, etc.) are both W3C Recommendations since 7 June.

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Twitter widget CSS fails to validate SERVERIA Programming Discussion 1 02-07-2010 02:36 AM
Helo with opacity in CSS bambinou Web Design and Content 8 10-19-2009 12:45 PM
Table Cell Opacity / Transparent ?????????? lost2 Web Design and Content 18 12-13-2005 04:47 PM
Help Validate CSS Blackg Web Design and Content 19 05-17-2005 06:22 PM
Validate my CSS/Html for $$? Volconvo Other Offers & Requests 8 03-26-2004 05:58 AM

Related posts from TheWhir.com
Title Type Date Posted
Healthcare.gov Extends $15 Million Terremark Cloud Contract (Again) Web Hosting News 2014-10-01 14:21:58
Average SQL Injection Breach Takes 140 Days to Discover: Ponemon Institute Report Web Hosting News 2014-05-01 08:33:58
Donuts Inc. Opens Sunrise Period for Seven New Generic Top-Level Domains Web Hosting News 2013-11-26 17:46:12
Attackers Access Customer Databases, Passwords in MongoHQ Hack Web Hosting News 2013-10-30 10:39:47
The Demise of Google Reader Blog 2013-03-14 13:21:34


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?