Welcome to Geeklog, Anonymous Tuesday, December 03 2024 @ 02:12 pm EST
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:
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:
div#leftblocks div.block-left {
background:url(images/a_different_background.jpg);
}
Will it still use padding: 8px;, etc?
Thanks!
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!
14
10
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
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.
One of the Geeklog Core Developers.
14
5
Quote
All times are EST. The time is now 02:12 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