Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
For example, if block.css contains:
Text Formatted Code
div#leftblocks div.block-list,
div#leftblocks div.block-left {
  margin-bottom: 12px;
  border-top: 1px solid #aaa;
  padding: 8px;
  background: #fff url("./images/css/block_bg.png") repeat-x scroll 0 0;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

and I'll use this custom.css:
Text Formatted Code
div#leftblocks div.block-list,
div#leftblocks div.block-left {
  background:url(images/a_different_background.jpg);
}

Will it still use padding: 8px;, etc?

Thanks!

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
custom.css is the last css file to be added so any definitions in the file will only replace if it existed before. Since the padding: wasn't specified in custom.css it should still exist (I believe but you could use firebug to confirm).
One of the Geeklog Core Developers.