I have two questions, i searched both on yahoo but i am bad at coming up with efective querries for searching.
1) is it posibel to do a class inside of a class in css? For example lets say i have a class called .replyCenter and i need it to hold values uniuqe to it for say the input{} and another class .bar is it posibel to do this?
2) A few times i have seen css that looks like this: #dog{} what does # do?
# is id
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
1) I'm not sure what you mean by the first question...
That's kinda a class inside of a class? The third div has black text.. untested for spelling errors but the theory works.HTML Code:<style> div.one { color: green; } div.one div.two { color: red; } </style> <div class="one">one <div class="two">two</div> </div> <div class="two">three</div>
2) Orjan is right if it's #name it's the id if it does not have that it's just a regular class.
HTML Code:<style> .one { color: green; } #two { color: red; } </style> <div class="one">one</div> <div id="two">two</div>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks