This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| stylesheet:style_the_computer_store [2025/01/23 10:49] – vinciane | stylesheet:style_the_computer_store [2025/01/25 15:16] (current) – clara | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| %% | %% | ||
| + | |||
| + | /* 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 { | p { | ||
| background: linear-gradient(155deg, | background: linear-gradient(155deg, | ||
| color: #fff; | color: #fff; | ||
| border-radius: | border-radius: | ||
| - | max-width: | + | max-width: |
| padding: 15px; | padding: 15px; | ||
| } | } | ||
| - | p:nth-child(odd) { | + | p:has(em) { |
| - | place-self: start; | + | margin-left:0; |
| + | margin-right: | ||
| + | background: linear-gradient(155deg, | ||
| } | } | ||
| - | p:nth-child(even) | + | p em { |
| - | place-self: end; | + | font-style: normal; |
| - | text-align: right; | + | font-family: serif; |
| + | } | ||
| + | p { | ||
| + | margin-right:0; | ||
| + | margin-left:auto; | ||
| } | } | ||
| p: | p: | ||
| - | place-self: center !important; | + | margin-left: auto; |
| + | margin-right: | ||
| background: linear-gradient(155deg, | background: linear-gradient(155deg, | ||
| border-radius: | border-radius: | ||
| + | text-align: center; | ||
| } | } | ||
| p strong { | p strong { | ||
| font-weight: | font-weight: | ||
| + | font-family: | ||
| } | } | ||
| %% | %% | ||