4 replies [Last post]
duckxtales
Offline
Regular
Last seen: 4 years 28 weeks ago
Timezone: GMT-5
Joined: 2007-05-15
Posts: 27
Points: 0

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.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 12 hours 33 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

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

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

duckxtales
Offline
Regular
Last seen: 4 years 28 weeks ago
Timezone: GMT-5
Joined: 2007-05-15
Posts: 27
Points: 0

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.

Caposoft
Caposoft's picture
Offline
Enthusiast
Last seen: 5 years 27 weeks ago
Timezone: GMT+1
Joined: 2008-03-16
Posts: 330
Points: 118

It is not conflicting

As Gary said, it is not conflicting, you simply added the value to the wrong object.

duckxtales
Offline
Regular
Last seen: 4 years 28 weeks ago
Timezone: GMT-5
Joined: 2007-05-15
Posts: 27
Points: 0

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?