stack overflow
stack overflow

Reputation: 187

--Why isn't the bottom border showing up here?

I don't see it, I simply changed my prvious CSS from

border-bottom to borderBottom when I started using React.

const style = {
  borderBottom: '3px solid black'
}

return (
  // ... snip
        <li style={style} onClick={this.clickHandler2.bind(this)} id="nav_fave">
  // ... snip
)

Upvotes: 0

Views: 110

Answers (1)

Harsh Makadia
Harsh Makadia

Reputation: 3443

Looks like you have a typo mistake (instead of borderBottom it's boderBottom in your case.)

This code works for me

const style = {
  borderBottom: '3px solid black',
  borderTop: '3px solid red'
};
return (
    // ... snip
    <li style={style} onClick={this.clickHandler2.bind(this)} id="nav_fave">
    // ... snip
)

Upvotes: 1

Related Questions