-1

I cant seem to get the default css to work in my next 13 project. I have a page.modules.css file and i'm using classname = styles.style

page.tsx

import styles from'./page.module.css'
export default function Home() {
  return (
    <div className={styles.testStyle}>
      send help
    </div>
  )
}


page.module.css

.testStyle {
    border-width: 2;
    border-color: #990099;
}

2 Answers2

0

You need to correct your css class to be like this:

.testStyle {
  border: solid #990099 2px;
}
0

semicolon missing after )

import styles from './page.module.css';

export default function Home() {
  return (
    <div className={styles.testStyle}>
      send help
    </div>
  );
}