Skip to content

列項目 垂直 置中,但項目要向上對齊 #1

@imagine10255

Description

@imagine10255

Describe the need of your request

列項目 垂直 置中,但項目要向上對齊

Proposed solution

    <LarnListSectionRoot>
            <Flex>
                {courses.map((course, idx) => {
                    return <CourseCard
                        key={idx}
                        courseNumber={(idx + 1)}
                        title={course.title}
                        features={course.features}
                    />;
                })}
            </Flex>
        </LarnListSectionRoot>


const LarnListSectionRoot = styled.section`
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 630px;
`;

中間有一個 Flex 那他向上對齊

Image

Alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions