Replies: 2 comments 2 replies
-
Thank you @car2t for "your solution" :D I like the idea that the size of the card can be calculated based on the size of its content, instead of directly setting width and height on the card element.
For which property? |
Beta Was this translation helpful? Give feedback.
-
I suppose we can use Overall, I disagree that the content should decide the width of the card. Some advice is very short, some are longer. For me it doesn't look good when the size of the card changes with each click on the button. |
Beta Was this translation helpful? Give feedback.
-
Hi all
SPOILER ALERT!!
I am going to write some code with a possible solution for the general layout and the card. Just trying to hook others in the discussion before trying to code. I think also I will let you do it.
This is just an idea. The project is too messy for me I get lose easily. xD
I think we don't need
@media
for desktop.We could do something like this:
set a
min-height: 50vh
, for example, in<div id="main-card" style="min-height: 50vh;"> ... </div>
And in that
div
a Grid:Last row will set the bottom in the last line using
margin-top: -10%;
. Well, the values can change, of course because we didn't set other CSS.clamp()
CSS function for the heading and the paragraph.max-width: 40ch;
, for example, for the paragraph.h1
andp
.@media
.For the general layout flex or grid with gap between items it should be enough I think.
What do you think all?
Better solutions or ideas?, I have just tested.
P.S. Sorry if all this looks "my solution", still lot to do anyway, just wanted to push a bit everyone and make others think about it without mess up the code yet. ;D
Beta Was this translation helpful? Give feedback.
All reactions