fello
fello

Reputation: 339

I have two form tags in the same style sheet and am having trouble styling

HERE

On the link above, there are two form tags, one at the very beginning and one at the very end of the style sheet. The one I am using for the profile page is the very last one in the style sheet. It has a class of .first1 to make it specific, but somehow the CSS is getting confused between the two tags. What can I do to let the CSS know I mean the last tag as opposed to the first form tag?

Upvotes: 0

Views: 124

Answers (2)

FatherStorm
FatherStorm

Reputation: 7183

I think what you're getting at is needing to remove the space between the element and class name so change

 form .first1 

to

form.first1

Upvotes: 3

jrn.ak
jrn.ak

Reputation: 36619

You're using form .first1 which means: "an element of class first1 within an element of type form"..

Try changing it to form.first1 which means: "an element of type form with class first1"

The space makes all the difference.

Upvotes: 2

Related Questions