Search code examples
cssmagentobackground-color

CSS issue - Background-Color not responding in - Magento style.css


I am trying to change the background color of the Shopping Cart title block.

When I added

background-color: #;  

to

.block-cart { 
 margin-bottom: 0px;
 margin-bottom: 0px;
 width: 165px;
 height: 30px;
 position: relative;
 top: -33px;
 right: 10px;
}

It showed a blue line, but not whole background.

Following block appears to be overlapping ^

.block-cart .block-title { 
     height: 7px;
     background-color: !important;

} 

The background-color element in ^ is not changing the color at all. I tried without !important first, but it made no difference.

Please give some suggestions or ideas as to why it's not loading!

Thanks!


Solution

  • You have height: 30px;. The actual block height clearly exceeds 30px. Removing that line should fix the problem.