WHy does .box work and not #triangle-up. On the shapes of CSS site it looks like it says to code it #triangle-up.
WHy does .box work and not #triangle-up. On the shapes of CSS site it looks like it says to code it #triangle-up.
for the box its targeting a class but for the triangle it targets an id, be sure to set id on your div not class ie: <div id="triangle-up"></div>
I have no idea what that means. Can you explain what you just said?
Go back to the lesson on basic CSS selectors. Pay particular attention to class selectors and id selectors. For example, in the code above .box
is a class selector and #triangle-up
is an id selector.
To apply the class styles to an HTML element use the class
HTML attribute:
<div class="box"></div>
To apply id styles to an HTML element use the id
HTML attribute:
<div id="triangle-up"></div>
I need a lot more context to understand than that. That feels like you just said the same thing again.
Actually never mind the first part of the message was cut off! Thank you sir