๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ‘จ‍๐Ÿš€ | OTHERS/๊ฐœ๋ฐœ์ผ์ง€

๋‚˜์˜ ์ฒซ ์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ_(2)

by KASSID 2022. 2. 24.

๋ชฉ์ฐจ

    728x90

     ์ฝ”๋“œ ๐Ÿ”ฝ

    https://github.com/Bluishhot-Star/WEB/tree/master/Firstpage

     

    ์ €๋ฒˆ์— ์ด์–ด์„œ ์›น์‚ฌ์ดํŠธ๋ฅผ ์™„์„ฑํ•ด ๋ณด์•˜๋‹ค.

    ์•„์ง JS๋Š” ์ ์šฉํ•˜์ง€ ์•Š์€ ์ƒํƒœ๋กœ,

    HTML๊ณผ CSS๋งŒ์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ๋‹ค!

     

    1. ๋‚˜์˜ ์• ์ •ํ•˜๋Š” ๋ฆฌ์ŠคํŠธ

     

    ์˜ค๋ฒ„์‹œ ํšจ๊ณผ

    ๋ธ”๋ก์ด ์‚ด์ง ์˜ฌ๋ผ๊ฐ€์„œ ์˜ค๋ฒ„๋ฅผ ํ–ˆ๋‹ค๊ณ  ์ธ์ง€ํ•˜๋„๋ก

    ํšจ๊ณผ๋ฅผ ์ฃผ์—ˆ๋‹ค.

     

    ๋งŒ์•ฝ ๋‚ด๋ถ€ ๋‚ด์šฉ์ด ๊ธธ์–ด์กŒ์„ ๋•Œ์—๋Š”

    ๋ง์ค„์ž„์„ ํ‘œ์‹œํ•˜๋„๋ก ์„ค์ •ํ•˜์˜€๋‹ค.

    .card-title{
        width: 220px; /*์„ค์ •ํ•ด์ฃผ์ง€ ์•Š์œผ๋ฉด ๋ง์ค„์ž„ ์†์„ฑ X*/
        white-space: nowrap; /*๊ณต๋ฐฑ์— ๋Œ€ํ•ด์„œ ๊ฐ์‹ธ์ง€ ์•Š๊ธฐ(๊ณต๊ฐ„์„ ๋„˜์–ด์„œ๋„ ์ค„๋ฐ”๊ฟˆ X)*/
        overflow:hidden; /*๋„˜์น˜๋ฉด ์ˆจ๊ธฐ๊ธฐ*/
        text-overflow: ellipsis; /*๋ง์ค„์ž„ ํ‘œ์‹œ*/
    }

    ์œ„์˜ ์ฝ”๋“œ๊ฐ€ ๋ชจ๋‘ ์žˆ์–ด์•ผ

    ๋ง์ค„์ž„ํ‘œ์‹œ๊ฐ€ ์ ์šฉ์ด ๋œ๋‹ค.

     

    2. ํ‘ธํ„ฐ

     

    3. ํŒŒ๋น„์ฝ˜ ์„ค์ •

    ์ง์ ‘ ํŒŒ๋น„์ฝ˜์„ ๊ทธ๋ ค์„œ ๋งŒ๋“ค์–ด์ฃผ์—ˆ๋‹ค!


    ์ถ”ํ›„์˜ ๊ณ„ํš

    ๋ฆฌ์ŠคํŠธ๋ฅผ ํ™”์‚ดํ‘œ๋ฅผ ๋ˆŒ๋Ÿฌ์„œ ์ขŒ์šฐ๋กœ ๋„˜๊ฒจ ๋ณผ ์ˆ˜ ์žˆ๊ฒŒ ๋งŒ๋“ค ์˜ˆ์ •์ด๋‹ค!

    ๋Œ“๊ธ€