|
#1
Aug 1, 2012, 05:32 PM
|
|
|
88 posts · Jun 2012
nairobi
|
|
I have been struggling with this for over a month. I have gone through all threads but all in vain. from one of the threads i learned how to change the background color of a single widget but when i use that, nothing happens. look at the css i use and tell me what is my mistake.
div.text-26 {
background-color: #EEEEEE;
}
I am trying to color the widget which contains authors bio. http://www.christiantruthcenter.com
|
#2
Aug 1, 2012, 06:35 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
I am trying to color the widget which contains authors bio
|
which widget might that be?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Aug 2, 2012, 01:35 AM
|
|
|
88 posts · Jun 2012
nairobi
|
|
In the side bar, it is the first top widget. The widget contains a picture of myself and a small bio
|
#4
Aug 2, 2012, 04:00 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
the 'text-26 is the ID not a CLASS - you need to correct your syntax
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Aug 2, 2012, 06:41 AM
|
|
|
88 posts · Jun 2012
nairobi
|
|
From a previous thread i read that we use the widget id and that is what i used. which syntax do i use then? give me an explanation on this.
Last edited by joshuamu; Aug 2, 2012 at 06:45 AM.
|
#6
Aug 2, 2012, 11:48 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
You do use teh ID, you just have teh syntax wrong. Go read take a CSS tutorial and see teh difference between ID and CLASS syntax. A good tutorial is at htmldog.com
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Aug 2, 2012, 01:20 PM
|
|
|
88 posts · Jun 2012
nairobi
|
|
I have tried all that in vain. even if i change the css to;
div#text-26 {
background-color: #EEEEEE;
}
I do not see any change.
|
#8
Aug 2, 2012, 04:37 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
there is a div within the main div that also is being assigned a background color, so your CSS works fine, it is just being overriden by the second background statement. you need to override that CSSAND prefix teh selector with the 'div#test-26' selector.
If you look at it with FireBug in FireFox, you should see it real easily.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Aug 2, 2012, 06:03 PM
|
|
|
88 posts · Jun 2012
nairobi
|
|
i have tried to override it with this below css but all in vain;
div#text-26 {
background-color: #EEEEEE !important;
}
Can you please give me a good example?
|
#10
Aug 2, 2012, 08:10 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Did you examine the elements using firebug?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Aug 3, 2012, 11:22 AM
|
|
|
88 posts · Jun 2012
nairobi
|
|
not yet. is there any other way because all my widgets needs to be styled and non is accepting my commands?
Last edited by joshuamu; Aug 3, 2012 at 11:28 AM.
|
#12
Aug 3, 2012, 01:55 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
not yet. is there any other way
|
sure, view the page and then view with page source and look at the code...though FireBug is easier.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Aug 3, 2012 at 02:09 PM.
|
|