/* this styling works when wanting to center bold text, italic text will be on the left of the discussion, and normal p paragraph will appear on the right */ p { background: linear-gradient(155deg, pink, red) border-box; color: #fff; border-radius: 25px; max-width: 350px; padding: 15px; } p:has(em) { margin-left:0; margin-right:auto; background: linear-gradient(155deg, red, pink) border-box !important; } p em { font-style: normal; font-family: serif; } p { margin-right:0; margin-left:auto; } p:has(strong) { margin-left: auto; margin-right: auto; background: linear-gradient(155deg, yellow, limegreen) border-box; border-radius: 0; text-align: center; } p strong { font-weight: normal; font-family: monospace; }