Differences
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:53] – vinciane | stylesheet:style_the_computer_store [2025/01/25 16:56] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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, | ||
Line 7: | Line 11: | ||
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: | ||
Line 22: | Line 33: | ||
p strong { | p strong { | ||
font-weight: | font-weight: | ||
+ | font-family: | ||
} | } | ||
%% | %% |