Jump to content

Overriding styles in CSS...


Jim R

Recommended Posts

Using Firebug to find the style of a certain part of my WordPress theme, it shows the file as my URL http://hoosierhoopsreport.com with a #3 after it and a line number.  Where do I find that?  I see that a lot actually in various themes.  I search all the files and can never the appropriate code.

 

I need to change the body background, and using the override method isn't working. 

body[style]= #000099 !important;

 

I've also tried it with the semi-colon after the hex code.

 

 

Link to comment
https://forums.phpfreaks.com/topic/262016-overriding-styles-in-css/
Share on other sites

If it has a filename with a number, it means the styling is on that page and not the stylesheet called in the head.  Since WP is a compilation of various .php files you'll have to narrow it down by what the <style>  is styling.

 

But body[style] = #000099 isn't correct CSS syntax.

body{

    background-color: #000099;

}

If it has a filename with a number, it means the styling is on that page and not the stylesheet called in the head.  Since WP is a compilation of various .php files you'll have to narrow it down by what the <style>  is styling.

 

But body[style] = #000099 isn't correct CSS syntax.

body{

    background-color: #000099;

}

 

That didn't work because it's being overridden by the http://hoosierhoopsreport.com #3 line 31 style.  There is no such line of code that even matches the style.  It wasn't a file name.

 

@jesirose, same thing...regular styling for body wasn't working, as it was overridden by the above. 

 

I was able to drill down to the div ID, and that worked.  I'm surprised, but it works. 

My apologies.  I typed the wrong URL.  It shows:  http://metroindybasketball.com #3 (line 101). 

 

 

I have since drilled down the to the div ID #top, which worked, but in other instances on other sites, I haven't been able to effectively produce what I want.  How would I find that line?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.