in my main style sheet I have the * selector to reset all styles, but now when I create a new page with new styles in the ID and class styles it gets overwritten by that. I have font-weight: normal in the *, and now i want font-weight: bold in one of my tags and I added it to a class and ID, but it still doesnt work. What should I do?
http://p.jabba.expotv.com/Where-do-you-get-your-hair-inspiration/t1cYs/b1/189F#
if you firebug this and turn off the font-weight bold in the * selector you'll see the correct font styling for the page.
Where you set.v-message to
Where you set .v-message to bold, the element in question is .v-message p.
Why would you set * {font-weight: normal;} anyway?
cheers,
gary
it was set by the previous
it was set by the previous front-end coder. I came in after him and I have to deal with it. I afraid of changing that since that might mess up other parts of the site. Any recommendations?
What are you suppose to put for the standard styles we are supposed to put for the * selector anyways. I learned that you do this to reset the margin's and paddings for cross browser consistency. But from seeing that it is conflicting with other sytles, I'm not sure anymore.
It is not conflicting
As Gary said, it is not conflicting, you simply added the value to the wrong object.
great thanks. yea i added it
great thanks. yea i added it to the parent of the element. but this means i would have to do this to every element directly. what if i wanted to affect all of the children elements of a container?