I'm working on a small CSS modification to my wife's blog. I want to change the color of the site menu. I worked with CSS Edit, located the rule (#access), then changed the color, previewed the changes, they looked good, so I pasted the changed rule in the CSS Edit window on my wife's site. Here's the code:
#access {
background: #c2ddd8; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#c2ddd8, #0a0a0a);
background: -o-linear-gradient(#c2ddd8, #0a0a0a);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#c2ddd8), to(#0a0a0a)); /* older webkit syntax */
background: -webkit-linear-gradient(#c2ddd8, #0a0a0a);
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
clear: both;
display: block;
float: left;
margin: 0 auto 6px;
width: 100%;
}
It's important to specify that this is the exact same code from the original stylesheet at WP.com. The only bits I changed were the color codes.
WP.com wouldn't show me the correct color for the menu when I clicked on Preview, so I figured it was a bug and hit Save. Sure enough, the correct color still wasn't being displayed (it defaulted to white), and WP.com had modified my code and erased all the lines that were important. Here's the code I got back after the save:
#access {
background:0;
-webkit-box-shadow:rgba(0,0,0,0.4) 0 1px 2px;
-moz-box-shadow:rgba(0,0,0,0.4) 0 1px 2px;
box-shadow:rgba(0,0,0,0.4) 0 1px 2px;
clear:both;
display:block;
float:left;
width:100%;
margin:0 auto 6px;
}
I also tried adding "!important" at the end of each line, before the semicolon, but that didn't help.
What I'd like to know is what I'm doing wrong. I'd rather not overwrite the entire stylesheet for the website, as it's working fine and I only need to change a couple of small things.
The blog I need help with is ligiapop.com.