Current location: Hot Scripts Forums » General Web Coding » CSS » Opacity Questions


Opacity Questions

Reply
  #1 (permalink)  
Old 10-07-08, 03:36 PM
BrightTribe BrightTribe is offline
New Member
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Opacity Questions

This is my first post on Programming Talk. I hope someone is able to help.

I've completed a new website (www.mxilife.com) and have found a bit of a frustrating issue. The <td> background area of my body uses the following to make the background color transparent so you can see the background image through the body:

td.sm-body
{
padding: 20px;
color:#FFFFFF;
font-size:11px;
font-family:Verdana, Arial, Helvetica, sans-serif;
line-height: 160%;
background-color: #000000;
/* for IE */
filter:alpha(opacity=85);
/* CSS3 standard */
opacity:0.85;
}

This works great if there is only text in the body. However, I need to make a page with an image in the body. See page here.

I've tried making a new style that has "opacity=100" and have applied it to both the <img> and the <p> tags. And I've tried wrapping the image in a separate <div> tag.

Is there a way to make the image not transparent? And this really needs to be "simple" because this entire site is editable in our CMS so I cannot use floating divs, etc. These are dynamic pages and the body content/code is editable from an editor in the control panel.

Thanks for your help!

Last edited by BrightTribe; 10-07-08 at 03:40 PM.
Reply With Quote
  #2 (permalink)  
Old 10-07-08, 04:08 PM
BrightTribe BrightTribe is offline
New Member
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Well, it's fixed in IE ... Grrr, Firefox

I had already created a sytle (e.g. ".img") and wrapped my image in a <div> tag.

.img
{
/* for IE */
filter:alpha(opacity=100);
/* CSS3 standard */
opacity:1.00;
}

But I added:

.img
{
/* for IE */
filter:alpha(opacity=100);
/* CSS3 standard */
opacity:1.00;
position:relative;}

And that seems to work in IE, but it does nothing in Firefox. Thoughts?

Last edited by BrightTribe; 10-07-08 at 04:22 PM.
Reply With Quote
  #3 (permalink)  
Old 10-18-08, 01:17 PM
GurkanAlkan GurkanAlkan is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I am not sure but can you try -moz-opacity

For example
-moz-opacity:1
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions and Answers script ! Mr.Bill Script Requests 9 04-21-10 02:52 AM
Best/worst interview questions? estherschindler The Lounge 4 10-18-06 09:54 AM


All times are GMT -5. The time now is 02:12 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.