Home / CSS Tips Generated By ChatGPT / Diagonal Backgrounds in CSS Create diagonal backgrounds using linear gradients. Source Code .diagonal-bg { background: linear-gradient(45deg, #007bff, #8A2387); }