Different content for css - html

I have a tooltip CSS code:
.GeneralTooltip {
background:#c7430f;
margin:0 auto;
text-transform:uppercase;
font-family:Arial, sans-serif;
font-size:18px;
vertical-align: middle;
position:relative;
}
.GeneralTooltip::before {
content:"This is tooltip general content";
font-size:13px;
line-height:13px;
font-family:Arial,sans-serif;
text-transform:none;
padding:8px 12px;
left:center;
vertical-align: middle;
transition:.0s ease-out;
background:yellow;
color:black;
border-color:black;
border:2px;
border-radius:5px;
position:absolute;
visibility:hidden;
}
.GeneralTooltip:hover::before {
visibility:visible;
position: fixed! important;
z-index: 999999999 !important;
display: block !important;
left:center;
bottom:10px;
border-color:black;
border:2px;
border-style:solid;
}
Is it possible to make some other CSS to replace the content attribute without using attr() or get data content from HTML?
For example:
.NameGeneralTooltip { it for replace content on GeneralTooltip to content:"This is Name"; }
.CityGeneralTooltip { it for replace content on GeneralTooltip to content:"This is City"; }
and so on.

You could just add another class and use that to set the content
.GeneralTooltip {
background:#c7430f;
margin:0 auto;
text-transform:uppercase;
font-family:Arial, sans-serif;
font-size:18px;
vertical-align: middle;
position:relative;
}
.GeneralTooltip::before {
content:"This is tooltip general content";
font-size:13px;
line-height:13px;
font-family:Arial,sans-serif;
text-transform:none;
padding:8px 12px;
left:center;
vertical-align: middle;
transition:.0s ease-out;
background:yellow;
color:black;
border-color:black;
border:2px;
border-radius:5px;
position:absolute;
visibility:hidden;
}
.GeneralTooltip:hover::before {
visibility:visible;
position: fixed! important;
z-index: 999999999 !important;
display: block !important;
left:center;
bottom:10px;
border-color:black;
border:2px;
border-style:solid;
}
.NameGeneralTooltip::before {
content:"This is Name";
}
.CityGeneralTooltip::before {
content:"This is City";
}
<p class="GeneralTooltip">GeneralTooltip</p>
<p class="GeneralTooltip NameGeneralTooltip">Name</p>
<p class="GeneralTooltip CityGeneralTooltip">City</p>
<p class="GeneralTooltip">GeneralTooltip</p>

Related

How should I make a button higher without effecting other elements?

I have a navigation bar at the top of my website.
HTML:
<text align="center">
<div class="home-nav">
<button class="nav-btn">What's New</button>
<button class="nav-btn">Community</button>
<button class="play-btn">Coming Soon</button>
<button class="nav-btn">Profile</button>
<button class="nav-btn">Information</button>
</text>
CSS:
.home-nav {
width:1240px;
height:49px;
background-color:#F1B84E;
border:5px solid #FFDE84;
border-style:outset;
}
.nav-btn {
width:auto;
height:49px;
background-color:#F1B84E;
border:none;
font-family:showcard gothic;
color:white;
-webkit-text-stroke:1.25px #000000;
-webkit-text-fill-color:#FFFFFF;
font-size:20px;
}
.play-btn {
width:auto;
height:69px;
background-color:#79E119;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border:5px solid #FFFFFF;
font-size:20px;
font-family:showcard gothic;
color:white;
}
I want the play button to be bigger than the normal buttons. But when I make the height higher than the normal buttons and look at it, it makes the normal buttons change position. How can I fix this?
Ok I have bring some small changes to your CSS styling just try these and let me know its working as you wanted or not.
body{
margin:0; padding:0;
}
.home-nav {
width:90%;
margin: 0 auto;
display: block;
background-color:#F1B84E;
border:5px solid #FFDE84;
border-style:outset;
}
.nav-btn {
width:auto;
height:49px;
background-color:#F1B84E;
border:none;
font-family:showcard gothic;
color:white;
-webkit-text-stroke:1.25px #000000;
-webkit-text-fill-color:#FFFFFF;
font-size:20px;
}
.play-btn {
width:auto;
height:70px;
background-color:#79E119;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border:5px solid #FFFFFF;
font-size:20px;
font-family:showcard gothic;
color:white;
}

Float left, vertical align middle, and display table cell does't work

I want image in left side and content in right side. But the image not in the middle when I using float:left, maybe someone of you give me a solution?
HTML:
<div class="wrap-shop"><div class="pro-img">
<img src="http://tshop.r10s.com/c18/f19/b968/3a87/a005/a662/e954/11bee5abd6005056ae13f2.jpg?_ex=125x125"/></div>
<div class="kanan">
<div class="discount">
40%
</div> <!-- end discount -->
<div class="judul">
beauty korea beauty korea beauty korea beauty korea beauty korea
</div>
<div class="harga-coret">Rp<del>1,000,000</del></div>
<div class="harga-asli">Rp 500,000</div>
<div class="bonusRsp">
300,000
</div>
<span class="go-shop">
Rincian Produk
</span>
CSS:
.wrap-pop{
margin-top:10px;
}
.wrap-shop{
border:solid #eaeaea 1px;
width:100%;
height:130px;
}
/* here is problem */
.pro-img{
padding:2px;
border:1px solid red;
--float:left;
vertical-align: middle;
display: table-cell;
width:125px;
height:125px;
background: #fff;
background-size:135px 100px;
--border-right:2px solid #bf0000;
}
.pro-img img{
max-width:125px;
max-height:125px;
border:1px solid yellow;
}
.kanan{
border:3px solid brown;
}
.judul{
font-family:Arial;
font-weight:bold;
margin-left:145px;
text-transform:capitalize;
text-decoration:none;
margin-bottom:1px;
color:black;
font-size:12px;
height:30px;
border:1px solid red;
overflow:hidden;
}
.discount{
border:1px solid yellow;
text-align:center;
font-weight:bold;
font-size:12px;
}
.discount::before {
content: "Diskon ";
}
.bonusRsp{
color:#bf0000;
margin-top:4px;
margin-bottom:5px;
font-size:12px;
}
.bonusRsp::before {
content: "Bonus ";
color:black;
font-size:12px;
}
.bonusRsp::after {
content: " Poin";
color:black;
font-size:12px;
}
.discount a{
color:yellow;
}
.harga-coret{
margin-top:5px;
font-size:11px;
margin-left:150px;
}
.harga-coret a{
color:black;
text-decoration:none;
}
.harga-asli{
font-size:15px;
color:#bf0000;
font-weight:bold;
margin-left:150px;
margin-bottom:2px;
}
.harga-asli a{
color:#bf0000;
text-decoration:none;
}
.go-shop{
border:1px solid #bf0000;
border-radius:2px;
width:120px;
color:#bf0000;
text-align:center;
background-color:white;
margin-left:9px;
text-decoration:none;
font-size:12px;
}
.judul a{
color:black;
text-decoration:none;
}
.go-shop a{
color:black;
text-decoration:none;
}
Here is my code https://jsfiddle.net/dedi_wibisono17/m6snbftt/2/
thank you.
--float:left;, change it to float:left; to work. Update: Add top padding and decrease the height.
Please try following:
.pro-img{
padding-top:15px;
padding-right:2px;
border:1px solid red;
float:left;
vertical-align: middle;
display: table-cell;
width:125px;
height:111px;
background: #fff;
background-size:135px 100px;
--border-right:2px solid #bf0000;
}
HI now used to this code
Define
.kanan{display:table-cell;}
Remove float left .pro-img
Demo
.kanan{display:table-cell;vertical-align:top;}
.wrap-pop{
margin-top:10px;
}
.wrap-shop{
border:solid #eaeaea 1px;
width:100%;
height:130px;
}
/* here is problem */
.pro-img{
padding:2px;
border:1px solid red;
vertical-align: middle;
display: table-cell;
width:125px;
height:125px;
background: #fff;
background-size:135px 100px;
--border-right:2px solid #bf0000;
}
.pro-img img{
max-width:125px;
max-height:125px;
border:1px solid yellow;
}
.kanan{
border:3px solid brown;
}
.judul{
font-family:Arial;
font-weight:bold;
margin-left:145px;
text-transform:capitalize;
text-decoration:none;
margin-bottom:1px;
color:black;
font-size:12px;
height:30px;
border:1px solid red;
overflow:hidden;
}
.discount{
border:1px solid yellow;
text-align:center;
font-weight:bold;
font-size:12px;
}
.discount::before {
content: "Diskon ";
}
.bonusRsp{
color:#bf0000;
margin-top:4px;
margin-bottom:5px;
font-size:12px;
}
.bonusRsp::before {
content: "Bonus ";
color:black;
font-size:12px;
}
.bonusRsp::after {
content: " Poin";
color:black;
font-size:12px;
}
.discount a{
color:yellow;
}
.harga-coret{
margin-top:5px;
font-size:11px;
margin-left:150px;
}
.harga-coret a{
color:black;
text-decoration:none;
}
.harga-asli{
font-size:15px;
color:#bf0000;
font-weight:bold;
margin-left:150px;
margin-bottom:2px;
}
.harga-asli a{
color:#bf0000;
text-decoration:none;
}
.go-shop{
border:1px solid #bf0000;
border-radius:2px;
width:120px;
color:#bf0000;
text-align:center;
background-color:white;
margin-left:9px;
text-decoration:none;
font-size:12px;
}
.judul a{
color:black;
text-decoration:none;
}
.go-shop a{
color:black;
text-decoration:none;
}
<div class="wrap-pop">
<div class="wrap-shop">
<div class="pro-img">
<img src="http://tshop.r10s.com/c18/f19/b968/3a87/a005/a662/e954/11bee5abd6005056ae13f2.jpg?_ex=125x125"/>
</div> <!-- end pro-img -->
<div class="kanan">
<div class="discount">
40%
</div> <!-- end discount -->
<div class="judul">
beauty korea beauty korea beauty korea beauty korea beauty korea
</div>
<div class="harga-coret">Rp<del>1,000,000</del></div>
<div class="harga-asli">Rp 500,000</div>
<div class="bonusRsp">
300,000
</div>
<span class="go-shop">
Rincian Produk
</span>
</div>
</div> <!-- end wrap shop -->
</div> <!-- end wrap-pop -->
Add this display: table; class .wrap-shop
https://jsfiddle.net/m6snbftt/5/

Cut off bottom of element with dynamic height

I recently registered for a forum that let's you modify your post layout with a little bit of CSS but the problem is that at the bottom of each post it always adds a few line breaks and a couple of dashes to separate your post's content and your signature. I do not plan on ever using a signature and the only things I put in that section are the two closing tags for the post layout. What I am trying to do it crop the bottom of the inner element so that the line breaks and dashes below each post are hidden. Here's a link to my profile on the forum which contains an example post.
http://jul.rustedlogic.net/profile.php?id=3182
Keep in mind I need for the inner element (.dialogue) to always be centered vertically and horizontally. Both it's height and width are dynamic.
EDIT: Having trouble with the height of the background element.
#import "http://fonts.googleapis.com/css?family=Amatic+SC";
.background{
position:relative;
background:#30619c url(http://example.com/jul/cave-bottom.gif) repeat-x bottom left;
height:100%;
padding:60px;
text-align:center;
}
.background:before{
content:'';
position:absolute;
top:0;
left:0;
background:url(http://example.com/jul/cave-top.gif) repeat-x top left;
width:100%;
height:131px
}
.background:after{
content:'';
display:inline-block;
height:100%;
vertical-align:middle
}
.dialogue{
text-align:left;
position:relative;
display:inline-block;
vertical-align:middle;
font-smooth:never;
-webkit-font-smoothing:none;
border:16px solid transparent;
border-image:url(http://example.com/jul/yi-border.png);
border-image-slice:16;
border-image-repeat:repeat;
background-color:#286048;
padding:10px;
font-family:'Amatic SC',monospace;
font-size:24px;
color:#fff;z-index:1
}
.dialogue a{
color:#fff
}
.dialogue blockquote{
margin:10px 0;
padding:10px;
background:rgba(0,0,0,0.4);
border:none
}
.dialogue blockquote hr{
visibility:hidden;
margin:0
}
.dialogue blockquote font:first-child{
font-family:'Amatic SC',monospace;
font-size:21px
}
<td valign="top" height="220" id="post3182" class="tbl font tdbg1">
<div class="background">
<div class="dialogue" style="overflow: hidden;">
Sample text.
<blockquote>
<font class="fonts">
<i>Originally posted by fhqwhgads</i>
</font>
<hr>
A sample quote, with a
link
, for testing your layout.
<hr>
</blockquote>
This is how your post will appear.
<br><br>
--------------------
<br>
</div>
</div>
</td>
The following works at least on FF, Chrome and IE8:
.dialogue {
line-height: 1.25;
overflow: hidden;
}
.dialogue:after {
content: '';
display: block;
margin-bottom: -2.5em;
}
#import "http://fonts.googleapis.com/css?family=Amatic+SC";
.background{
position:relative;
background:#30619c url(http://lukelogiudice.com/jul/cave-bottom.gif) repeat-x bottom left;
height:100%;
padding:60px;
text-align:center;
}
.background:before{
content:'';
position:absolute;
top:0;
left:0;
background:url(http://lukelogiudice.com/jul/cave-top.gif) repeat-x top left;
width:100%;
height:131px
}
.background:after{
content:'';
display:inline-block;
height:100%;
vertical-align:middle
}
.dialogue{
text-align:left;
position:relative;
display:inline-block;
vertical-align:middle;
font-smooth:never;
-webkit-font-smoothing:none;
border:16px solid transparent;
border-image:url(http://lukelogiudice.com/jul/yi-border.png);
border-image-slice:16;
border-image-repeat:repeat;
background-color:#286048;
padding:10px;
font-family:'Amatic SC',monospace;
font-size:24px;
color:#fff;z-index:1
}
.dialogue a{
color:#fff
}
.dialogue blockquote{
margin:10px 0;
padding:10px;
background:rgba(0,0,0,0.4);
border:none
}
.dialogue blockquote hr{
visibility:hidden;
margin:0
}
.dialogue blockquote font:first-child{
font-family:'Amatic SC',monospace;
font-size:21px
}
.dialogue {
line-height: 1.25;
overflow: hidden;
}
.dialogue:after{
content: '';
display:block;
margin-bottom: -2.5em;
}
<td valign="top" height="220" id="post3182" class="tbl font tdbg1">
<div class="background">
<div class="dialogue" style="overflow: hidden;">
Sample text.
<blockquote>
<font class="fonts">
<i>Originally posted by fhqwhgads</i>
</font>
<hr>
A sample quote, with a
link
, for testing your layout.
<hr>
</blockquote>
This is how your post will appear.
<br><br>
--------------------
<br>
</div>
</div>
</td>
Try this:
.dialogue {
overflow: hidden;
line-height: 1.25;
}
.dialogue > br:last-child {
display: block;
margin-bottom: -2.5em;
}
#import "http://fonts.googleapis.com/css?family=Amatic+SC";
.background{
position:relative;
background:#30619c url(http://lukelogiudice.com/jul/cave-bottom.gif) repeat-x bottom left;
height:100%;
padding:60px;
text-align:center;
}
.background:before{
content:'';
position:absolute;
top:0;
left:0;
background:url(http://lukelogiudice.com/jul/cave-top.gif) repeat-x top left;
width:100%;
height:131px
}
.background:after{
content:'';
display:inline-block;
height:100%;
vertical-align:middle
}
.dialogue{
text-align:left;
position:relative;
display:inline-block;
vertical-align:middle;
font-smooth:never;
-webkit-font-smoothing:none;
border:16px solid transparent;
border-image:url(http://lukelogiudice.com/jul/yi-border.png);
border-image-slice:16;
border-image-repeat:repeat;
background-color:#286048;
padding:10px;
font-family:'Amatic SC',monospace;
font-size:24px;
color:#fff;z-index:1
}
.dialogue a{
color:#fff
}
.dialogue blockquote{
margin:10px 0;
padding:10px;
background:rgba(0,0,0,0.4);
border:none
}
.dialogue blockquote hr{
visibility:hidden;
margin:0
}
.dialogue blockquote font:first-child{
font-family:'Amatic SC',monospace;
font-size:21px
}
.dialogue {
overflow: hidden;
line-height: 1.25;
}
.dialogue > br:last-child {
display: block;
margin-bottom: -2.5em;
}
<td valign="top" height="220" id="post3182" class="tbl font tdbg1">
<div class="background">
<div class="dialogue" style="overflow: hidden;">
Sample text.
<blockquote>
<font class="fonts">
<i>Originally posted by fhqwhgads</i>
</font>
<hr>
A sample quote, with a
link
, for testing your layout.
<hr>
</blockquote>
This is how your post will appear.
<br><br>
--------------------
<br>
</div>
</div>
</td>

styling link text in a div

I am having trouble editing links in a div. I would like the link text to be centered vertically inside it's black div. I would also like the box background to change to red on hover...
thanks so much for any assistance!
html:
<div id="footer_subscribe">
<input type="text" class="subscribe" value="Email Address" />
Subscribe
</div>
<div id="footer_facebook">
<img src="http://s26.postimg.org/q5tytjx2t/nav_facebook.jpg" />
Become a Fan
</div>
<div id="footer_youtube">
<img src="http://s26.postimg.org/rywvhvi9h/nav_youtube.jpg" />
Watch Us
</div>
css:
#footer_subscribe {
background:#000;
width:305px;
height:35px;
float:left;
padding:0;
}
input.subscribe {
border:2px solid black;
margin:2px;
width:200px;
height:24px;
}
#footer_facebook {
background:#000;
width:155px;
height:35px;
float:left;
padding:0;
margin-left:5px;
}
#facebook_logo {
width:32px;
height:32px;
}
a.footer_social {
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
/* 14px/16=0.875em */
font-style:normal;
text-decoration:none;
color:#FFF;
}
a:link.footer_social {
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
/* 14px/16=0.875em */
font-style:normal;
text-decoration:none;
color:#FFF;
}
a:link.visited.footer_social {
color:#FFF;
}
a:link.hover.footer_social {
color:#F00;
}
http://jsfiddle.net/4os21tzf/
#footer_subscribe {
background:#000;
width:305px;
height:35px;
float:left;
padding:0;
line-height: 33px;
}
#footer_subscribe:hover {
background:red;
}
#footer_facebook {
background: none repeat scroll 0% 0% #000;
width: 155px;
float: left;
padding: 0px;
margin-left: 5px;
line-height: 35px;
height: 35px;
}
#footer_facebook:hover {
background:red;
}
a.footer_social:link {
font-family: Arial,Helvetica,sans-serif;
font-size: 1em;
font-style: normal;
text-decoration: none;
color: #FFF;
vertical-align: top;
padding-top: 10px;
}
a.footer_social:hover{
color: red;
}
JSFIDDLE DEMO
To change the colour of the link on hover?
a.footer_social:hover{
color:#F00;
}
To change the colour background on hover (link):
a.footer_social:hover{
color:#000000;
background-color:red;
}
Change the colour of the background (entire div)
#footer_facebook:hover{
background-color:red;
}
#footer_subscribe:hover
{
background:Red;
}
To change color add this to your CSS:
#footer_subscribe:hover
{
background-color:red;
}
#footer_facebook:hover
{
background-color:red;
}
For text alignment:
a:link.footer_social {
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
/* 14px/16=0.875em */
font-style:normal;
text-decoration:none;
color:#FFF;
vertical-align: top;
}
use display:table; in parent div and use display: table-cell; vertical-align: middle; in link
#footer_subscribe {
display:table;
}
a.footer_social:link{
display: table-cell;
vertical-align: middle;
}
#footer_subscribe:hover{
background-color:red;
}
working jsFiddle Link
hope this works for you.

How do I set a partially transparent background on a div?

I want the divs to be partially transparent so that the background can be seen through, but want the other elements <p> not to be transparent as they are in the image. Currently I am using opacity: .4.
HTML
<!-- tarifas starts here-->
![<div class="tarifas">
<h1>Tarifas</h1>
<h3>Consigue la máxima experiencia sin preocuparte por el roaming</h3>
<div class="tarifas_left">
<div class="tarifas_left_top">
<p>5€<span>/día</span></p>
</div>
<div class="tarifas_left_bottom">
<p>hasta<span>1Gb</span>/día</p>
<p>router wifi movil</p><button>
<p>RESERVAR</p></button>
</div>
</div>
<div class="tarifas_right">
<div class="tarifas_right_top">
<p>30€<span>/mes</span></p>
</div>
<div class="tarifas_right_bottom">
<p>hasta<span>7Gb</span>/día</p>
<p>router wifi movil</p><button>
<p>RESERVAR</p></button>
</div>
</div>
</div>
CSS
tarifas {
background:url(image/air_image1.jpg) no-repeat scroll 0 -332px rgba(0,0,0,0);
height:460px;
position:relative;
width:100%
}
.tarifas h1 {
font-size:40px;
color:#fff;
margin-left:500px;
margin-top:28px;
position:absolute;
font-family:HelveticaNeue-Light
}
.tarifas h3 {
font-size:24px;
color:#fff;
margin-left:232px;
margin-top:100px;
position:absolute;
font-family:HelveticaNeue-Light
}
.tarifas_left_top {
position:absolute;
width:285px;
height:80px;
background-color:#AEABA1;
margin-top:150px;
margin-left:290px;
border-radius:10px 10px 0 0;
opacity:.4;
border:2px solid #fff
}
.tarifas_left_bottom {
position:absolute;
width:285px;
height:170px;
background-color:#AEABA1;
margin-top:237px;
margin-left:290px;
border-radius:0 0 10px 10px;
opacity:.4;
border:2px solid #fff
}
.tarifas_left_top p {
font-size:67.48px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light;
opacity:1
}
.tarifas_left_top p span {
font-size:12px;
color:#fff;
font-family:HelveticaNeue-Light
}
.tarifas_left_bottom p:nth-child(1) {
font-size:12px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light
}
.tarifas_left_bottom p:nth-child(1) span {
font-size:24px;
color:#fff;
font-family:HelveticaNeue-Light
}
.tarifas_left_bottom p:nth-child(2) {
font-size:24px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light
}
.tarifas_left_bottom button {
border-radius:10px;
color:#fff;
font-size:20px;
height:39px;
margin-left:65px;
margin-top:55px;
width:155px;
font-family:HelveticaNeue-Light;
opacity:1
}
.tarifas_right_top {
position:absolute;
width:285px;
height:80px;
background-color:#AEABA1;
margin-top:150px;
margin-left:600px;
border-radius:10px 10px 0 0;
opacity:.4;
border:2px solid #fff
}
.tarifas_right_bottom {
position:absolute;
width:285px;
height:170px;
background-color:#AEABA1;
margin-top:237px;
margin-left:600px;
border-radius:0 0 10px 10px;
opacity:.4;
border:2px solid #fff
}
.tarifas_right_top p {
font-size:67.48px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light
}
.tarifas_right_top p span {
font-size:12px;
color:#fff;
font-family:HelveticaNeue-Light
}
.tarifas_right_bottom p:nth-child(1) {
font-size:12px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light
}
.tarifas_right_bottom p:nth-child(1) span {
font-size:24px;
color:#fff;
font-family:HelveticaNeue-Light
}
.tarifas_right_bottom p:nth-child(2) {
font-size:24px;
color:#fff;
text-align:center;
font-family:HelveticaNeue-Light
}
.tarifas_right_bottom button {
border-radius:10px;
color:#fff;
font-size:20px;
height:39px;
margin-left:65px;
margin-top:55px;
width:155px;
font-family:HelveticaNeue-Light;
opacity:1
}
and the screenshot:
Use rgba colors rather than opacity which affects the children of an element.
So for instance
background-color: #AEABA1
opacity: .4
would translate into:
background-color: rgba(174, 171, 161, 0.4)
You can find a HEX to RGBA convertor here
For the classes .tarifas_left_top and .tarifas_left_bottom, remove the opacity and instead use background-color: rgba(#,#,#,#). For the background color #AEABA1 with opacity 0.4, this translates to background-color: rgba(174,171,161,0.4).
For IE 8 and below, you'll need to override the background with a filter property.
.tarifas_left_top {
background-color: rgba(174,171,161,0.4);
background: transparent\9;
/* This '\9' is intentional. It's a CSS hack, but
it works, and it resets the background in IE 8
and below only. */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66AEABA1,endColorstr=#66AEABA1);
zoom: 1;
}
Effectively, this gives you cross-browser semi-transparent backgrounds without affecting the opacity of the element's children. These properties can also be used for the border-color and color properties.