Results 1 to 12 of 12
Thread: Validate CSS opacity
-
12-19-2011, 06:02 AM #1Temporarily 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)
I was wondering if someone knew a correct way of doing what my code does with CSS 2.1?
-
12-19-2011, 06:20 AM #2Web Template Master
- Join Date
- May 2009
- Location
- United Kingdom
- Posts
- 1,695
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 ~ Templates & services for web hosting resellers since 2009!
█ #1 Web Hosting Templates for WHMCS Templates | WordPress | HTML | Blesta | Clientexec
█ Professional WHMCS Services | Installation | Configuration | Integration | Upgrades
-
12-19-2011, 06:30 AM #3Temporarily 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.
-
12-19-2011, 06:31 AM #4Web Template Master
- Join Date
- May 2009
- Location
- United Kingdom
- Posts
- 1,695
█ Zomex ~ Templates & services for web hosting resellers since 2009!
█ #1 Web Hosting Templates for WHMCS Templates | WordPress | HTML | Blesta | Clientexec
█ Professional WHMCS Services | Installation | Configuration | Integration | Upgrades
-
12-19-2011, 07:47 AM #5Temporarily Suspended
- Join Date
- Nov 2011
- Posts
- 146
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.
-
12-19-2011, 01:22 PM #6Junior Guru
- Join Date
- Oct 2009
- 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.
-
12-19-2011, 04:44 PM #7WHT Addict
- Join Date
- Nov 2009
- Posts
- 119
hi
have you try his ?
filter:alpha(opacity=40);
opacity: 0.4;
-
12-19-2011, 07:01 PM #8Web Hosting Master
- Join Date
- Nov 2010
- Posts
- 620
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?
-
12-19-2011, 09:01 PM #9Temporarily 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.
-
12-19-2011, 09:09 PM #10Web Hosting Master
- Join Date
- Nov 2010
- Posts
- 620
-
12-19-2011, 10:00 PM #11Web Hosting Master
- Join Date
- Jul 2007
- Location
- Virginia
- Posts
- 1,314
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...
~ @PreetamJinka
-
12-20-2011, 04:09 PM #12Junior Guru
- Join Date
- Oct 2009
- Posts
- 176
Not wholly true. CSS 2.1 and CSS3 Color (including RGBA, HSLA, etc.) are both W3C Recommendations since 7 June.
Similar Threads
-
Twitter widget CSS fails to validate
By SERVERIA in forum Programming DiscussionReplies: 1Last Post: 02-07-2010, 02:36 AM -
Helo with opacity in CSS
By bambinou in forum Web Design and ContentReplies: 8Last Post: 10-19-2009, 12:45 PM -
Table Cell Opacity / Transparent ??????????
By lost2 in forum Web Design and ContentReplies: 18Last Post: 12-13-2005, 04:47 PM -
Help Validate CSS
By Blackg in forum Web Design and ContentReplies: 19Last Post: 05-17-2005, 06:22 PM -
Validate my CSS/Html for $$?
By Volconvo in forum Other Offers & RequestsReplies: 8Last Post: 03-26-2004, 05:58 AM