4 replies [Last post]
ishapr
ishapr's picture
Offline
newbie
New Delhi
Last seen: 7 years 34 weeks ago
New Delhi
Timezone: GMT+5.5
Joined: 2013-02-16
Posts: 4
Points: 6

Hi,

I want to use RGBA color in one of my div in Dreamweaver CS5, while typing the color code in box like: rgba(0,0,0,.5), the dreamweaver says the following error "rgba(0,0,0,.5) is not a valid color value. Enter a hex value (#RRGGBB) or a standard color name.

I have tried using class

.rgba {
background: rgba(165,165,165,.85);
}

but I can't see any color. I have seen several videos on Youtube where the person was able to directly use the RGBA color code in the dreamweaver cs5 colorbox.

Please help!

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 hour 51 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9772
Points: 3854

Try rgba(0,0,0,0.5). Note the

Try rgba(0,0,0,0.5). Note the leading zero on the alpha value. Do keep in mind that DW is not the browser, nor is it the authoritative word on validity. See ยง4.2.2. RGBA color values.

Always test in real browsers and check validity with the validators at w3.org

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

ishapr
ishapr's picture
Offline
newbie
New Delhi
Last seen: 7 years 34 weeks ago
New Delhi
Timezone: GMT+5.5
Joined: 2013-02-16
Posts: 4
Points: 6

Problem Still Persists

Hi Gary,

Thank you for your prompt help. The problem is dreamweaver is not at all accepting rgba code, it shows error and automatically returns to hex code "#333" after showing error.error.PNG

Don't know what to do! Several in youtube tutorials are doing it easily. Sad

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 hour 51 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9772
Points: 3854

Plain edit mode?

Doesn't DW have a plain edit mode, without all the help? I haven't touched DW since about 2000 or '01. I messed with it some and decided it was simpler and much faster to just fire up Emacs and write code. From helping others with DW, also a while back, I recall you can leave design mode or whatever it's called, and simply write what you want.

Do you have an old version? The css3 color module was a candidate recommendation as of 2003 and totally stabilized as a recommendation in 2011. Doesn't Adobe do any updates? (Forgive me my ignorance, I'm a Linux guy and can upgrade every application and library on my machine to last night's build.)

Frankly, unless your boss is telling you that's the company way, I'd do again what I did a dozen years ago; dump it. Find someone you really dislike and make him a deal he can't refuse. Laughing out loud

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

ishapr
ishapr's picture
Offline
newbie
New Delhi
Last seen: 7 years 34 weeks ago
New Delhi
Timezone: GMT+5.5
Joined: 2013-02-16
Posts: 4
Points: 6

Thank You!

Got it right! Did it via plain text mode! Dreamweaver still looks outdated! Anyways, thanks a ton for your assistance Smile