Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 02:39 pm EDT

Geeklog Forums

Does Modern_curve's custom.css replace or add?


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!
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.
 Quote

All times are EDT. The time is now 02:39 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content