Please explain id


#1

Please explain how I should create an id selector in the CSS file for the id: header-text which is in a div that is nested in another div. Thanks.


#2

You use # and then the id name.
eg

<div id="foo">
    <p>hello!</p>
</div>

#foo {
    text-align: center;
}

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.