Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Cross Browser Opacity
Old 03-25-2011, 11:54 AM Cross Browser Opacity
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
Can someone help me changing a table opacity? Is it possible?

The table is:
Quote:
<table style="width: 500px; height: 50px; font-family: arial;" id="one" class="stats" cellspacing="0">
<tr>
<td class="hed" colspan="2">Title:</td>
</tr>

<td style="text-align: justify;" ="">
(...)

</td>
</tr>
</table>
The css code is:

Quote:
.transparent_class {
/* IE 8 */
background:#000;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=5 0)”;
/* IE 5-7 */
filter: alpha(opacity=50);
/* Netscape */
-moz-opacity: 0.5;
/* Safari 1.x */
-khtml-opacity: 0.5;
/* Good browsers */
opacity: 0.5;
}
a

nd this can helps too:
Quote:
  1. #c-transparent {
  2. opacity: 0.7;
  3. -moz-opacity: 0.7;
  4. -khtml-opacity: 0.7;
  5. /* filter: alpha(opacity=70);*/
  6. filter:progid:DXImageTransform.Microsoft.Alpha(opa city=70);
  7. }

Last edited by chrishirst; 03-25-2011 at 11:56 AM..
madseason is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-25-2011, 12:01 PM Re: Cross Browser Opacity
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Apply the class to the table element.

Take Note:
The opacity will apply to every cell and the contents of every cell as well.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-25-2011, 12:17 PM Re: Cross Browser Opacity
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Apply the class to the table element.

Take Note:
The opacity will apply to every cell and the contents of every cell as well.

Like this?

Quote:
<table style="width: 500px; height: 50px; font-family: arial;" id="one" class="transparent_class" cellspacing="0">
<tr>
<td class="transparent_class" colspan="2">Title:</td>
</tr>

<td style="text-align: justify;" ="">
(...)

</td>
</tr>
</table>
How do i call in the head the css?

Quote:
<link href="css/your-style-sheet.css" type="text/css" rel="stylesheet" media="screen"/>
madseason is offline
Reply With Quote
View Public Profile
 
Old 03-25-2011, 01:44 PM Re: Cross Browser Opacity
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Adding the class to the table AND the cell will double the effect on the cell contents as the opacity cascades through the "element stack"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-28-2011, 05:05 AM Re: Cross Browser Opacity
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
Can you help me changing this line of code?

HTML Code:
<link href="css/table.css" type="text/css" rel="stylesheet" media="screen"/>

Last edited by chrishirst; 03-28-2011 at 06:26 AM..
madseason is offline
Reply With Quote
View Public Profile
 
Old 03-28-2011, 05:37 AM Re: Cross Browser Opacity
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by madseason View Post
Can you help me changing this line of code?
To what?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-28-2011, 05:57 AM Re: Cross Browser Opacity
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
this css:

Code:
.transparent_class {
  /* IE 8 */
   background:#000;
  -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=5  0)”;
   /* IE 5-7 */
   filter: alpha(opacity=50);
   /* Netscape */
  -moz-opacity: 0.5;
   /* Safari 1.x */
  -khtml-opacity: 0.5;
   /* Good browsers */
  opacity: 0.5;
}

Last edited by chrishirst; 03-28-2011 at 06:25 AM..
madseason is offline
Reply With Quote
View Public Profile
 
Old 03-28-2011, 06:30 AM Re: Cross Browser Opacity
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well this
HTML Code:
<link href="css/table.css" type="text/css" rel="stylesheet" media="screen"/>
is a link element that connects an external stylesheet to the HTML document, while these
Code:
.transparent_class {
  /* IE 8 */
   background:#000;
  -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=5  0)”;
   /* IE 5-7 */
   filter: alpha(opacity=50);
   /* Netscape */
  -moz-opacity: 0.5;
   /* Safari 1.x */
  -khtml-opacity: 0.5;
   /* Good browsers */
  opacity: 0.5;
}
are style rules that belong in the aforementioned external style sheet.
One cannot be changed into the other.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-28-2011, 07:09 AM Re: Cross Browser Opacity
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
I want to call the second trhoug the first link
madseason is offline
Reply With Quote
View Public Profile
 
Old 03-28-2011, 07:56 AM Re: Cross Browser Opacity
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Put those rules in table.css and it will happen.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Cross Browser Opacity
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45976 seconds with 12 queries