Link to my site: http://www.reenactor.net/forums/index.php
SMF version: 1.1.13
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: primary theme: TP Meadows
Browser Name and Version: Firefox 4
Mods installed: Below at bottom of page
I am wondering if it is possible to change certain blocks attributes. For example, on this page: http://www.reenactor.net/forums/index.php/page,21.htmll (http://www.reenactor.net/forums/index.php/page,21.html) I would like to start by changing the bg of the block the menu is in to have a blue bg like the nav buttons (prob making them rollovers later)... is it possible? I need to figure out a good theme here, but to start, I am tweaking away. Just wondering if there is someway I don't know about?
Mods installed:
1. Ad Managment 2.3
2. Amazon ISBN & ASIN Mod 1.1 Want to rem, won't let me
3. Auto Embed Video Clips 1.2
4. SMF 1.0.16 / 1.1.8 Update 1.0
5. Buy Me A Beer 1.1
6. Custom Profile Field Mod 3.19
7. Favicon 1.0 [ List Files ] [ Delete ] Want to rem as it doesn't work, won't let me
8. FontandSizeDropdown_1.2 1.2
9. Global Announcements 1.0
10. Global Headers Footers 1.3 Want to rem, won't let me
11. Lots_o_Smileys 1.0
12. Member Awards 1.0.2
13. Member Color Link 2.0.0
14. Moderator Activity Report for SMF1.1.2 1.2
15. MySpace Field 2.4
16. Redirection Boards 2.01
17. Registered Images ENG 2
18. Repeating Calendar Events v1.2.6 1.2.6
19. SMF Gallery Pro Upgrade 1.4.2
20. SMF Gallery Pro Upgrade 1.4.3
21. SMF Staff Page 1.5.1
22. SMF 1.1.2 Update Package 1.1.2
23. SMF Gallery Pro 1.3.21
24. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
25. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
26. SMF 1.0.14 / 1.1.6 Update 1.0
27. SMF 1.0.15 / 1.1.7 Update 1.0
28. SMF 1.0.11 / 1.1.3 Update 1.1
29. Spam Me Not Mod 1.02
30. TinyPortal 1.075
31. Users Online Today Mod 1.4.0
32. SMF Gallery Pro Upgrade 1.4.5
33. Ultimate Profile 0.8.5 Want to change to v.9, but won't let me uninstal this one to do so >:-(
34. Social Bookmarks 1.1
35. Links 1.0
36. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
37. TinyPortal 1.083
38. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1
39. FCKEditor4TP 1.0
40. SMF 1.0.19 / 1.1.11 Update 1.0
41. SMF 1.0.19 / 1.1.11 Update 1.0
42. SMF 1.0.19 / 1.1.11 Update 1.0
43. SMF 1.0.19 / 1.1.11 Update 1.0
44. SMF 1.0.19 / 1.1.11 Update 1.0
45. Ultimate Profile 0.9 [ List Files ] [ Delete ]
46. SMF 1.0.19 / 1.1.11 Update 1.0
47. TinyPortal 1.102
48. SMF 1.0.19 / 1.1.11 Update 1.0
49. SMF 1.0.20 / 1.1.12 Update 1.0
50. SMF 1.0.21 / 1.1.13 Update 1.0
51. PM On Registration 1.0
Inspect the element with Firebug, and you will see that that block is in a div which has an id of "block64". There is no style rules yet for this particular div, so use Firebug to add one:
#block64{
background:blue;
}
Use Firebug to tweak the color to your liking, and add the final result to your css file.
Am playing with it now. I don't have a lot of luck w/ firebug in that I don't understand how it works and the instructions didn't seem to help me much. It's like it's hit or miss when I try to use it. I can SEE where you can mess with things, but sometimes it works for me and sometimes not. I added that code you posted to the CSS file, but am assuming that's not exactly correct or something. :-o
Anyway, I tried it and the css file shows it and I thought I assigned it, but it doesn't work, so I must have screwed that up :-(
There is another element inside that one that has a background set.
.windowbg {
background-color: #F7F7F7;
color: #000000;
}
If you remove background-color then you can add the background as I described above. This will remove the background from all .windowbg, of course, so take a look and make the changes with Firebug to see if you like it.
Firebug is pretty easy to use if you understand how css works. If you don't then of course it will be just more confusion.
Edit: I must be dyslexic or something, the div id is 'block46' not block 64. :-[ Sorry, about that !
There is always a bit of trial and error writing css, and using Firebug. It is like being a detective, you look at clues and eliminate suspects, or in other words, try it if it doesn't work it must be wrong. Unfortunately the correct answer is not always simple or obvious. I didn't have a lot of time the other day and I gave you a quick answer, today I took a closer look and I'll describe the steps I took.
First, since you said you had added the code I gave you, I looked to see if it was there, it was not. Either you removed it again, or you added it to the wrong file
I added style="background:blue" inline (using firebug, just right click on the html where it says 'block64 and choose add element) and as you observed, it did not work. So I just worked my way down the html elements and found that and inner element, .widowbg had a background, and windowbg fills block64, so over in the css side of Firebug, I disabled the background. Do that by hovering just to the left of the style declaration you want to disable, and a grey circle with a line will appear, click and it turns red. And the deceleration greys out. Here a screen shot of Firebug, and the result, using #000098 instead of blue for the background color.
As always, there are more than one ways of doing this. If you want to keep the background on .windowbg you could use this instead:
#block46 .windowbg {
background:#000098;
}
This will target a div class .windowbg only in #block46.
I so tried it. I tried what you had put before and it didn't work and I fooled w/ it and it still didn't work. I added the bit you pasted at last and voila it worked!
I love the idea of style sheets, I use them extensively when I am doing print stuff... I just seem to have a lot of trouble when on the 'Net :-[ It doesn't seem that hard, but the cascading part is, I guess, what is my downfall. I really need a good book, maybe a dummies book or something to get me into this. Sometimes I can easily tweak the css, but other times... I am just lost. Also, firebug is hard for me. I want to fix the default theme so that it doesn't spread out on a wider monitor... I have had NO luck w/ that. All i can do is get it to move all the stuff align left :tickedoff: Here is me asking... http://www.tinyportal.net/index.php?topic=33745.msg270528#msg270528 (http://www.tinyportal.net/index.php?topic=33745.msg270528#msg270528) This cannot be that hard.
BTW, you KNOW I am going to save that bit of code now to change blocks... ;)
Ok, I answered your question about the width of the page in that thread.
So, I've been using this bit of knowledge you showed me and voila! it works great! I have tweaked about my WWII section and made a new navigation thing, but had a question. I tried firebug and I could not see how to remove a white border around the table. I looked around a lot, I am sure it's something simple, but cannot see it. Here's the page" http://www.reenactor.net/forums/index.php/page=17 (http://www.reenactor.net/forums/index.php/page=17) I guess what I'm asking, is it possible to remove that thin white border? ???
In ../forums/Themes/WWII/style.css ...
.tborder {
background-color: #F8F4ED;
border: 1px solid #695942;
padding: 1px;
}
background-color: #F8F4ED;
Be aware that this light color is used in other locations and you may not like the look. You may want to backup the file first so that you can put it back if you don't like it.
ZarPrime
Thanks ZarPrime! O0 I will try it tomorrow... my day got away from me again, but I got some stuff done. Now if I could just inspired on the main area navigation. Something w/ cool roll overs. i saw one once w/ cannons in the BG that fired as you moused over them. Neat effect, but already done. i was kind happy the signs in WW2 nav, I made it years ago for my old WWII unit.
~M.