Jump to content
Fórum Script Brasil
  • 0

Não criar espaço entre as imagens dentro de uma <div> <sector> <ol> <li>.


Question

Olá sou novo no mundo do desenvolvimento. Estou seguindo os passos do projeto, fiz conforme informado, mas está dando erro.

Projeto da Caelum -> Mirror Fashion

HTML

<div class="container paineis">
 
        <section class="painel novidades">
            <h2>Novidades</h2>
            <ol>
                <li>
                    <a href="produto1.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura1.png" alt="miniatura1">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto2.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura2.png" alt="miniatura2">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto3.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura3.png" alt="miniatura3">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto4.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura4.png" alt="miniatura4">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto5.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura5.png" alt="miniatura5">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto6.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura6.png" alt="miniatura6">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
            </ol>
 
        </section>
 
        <section class="painel mais-vendidos">
            <h2>Mais Vendidos</h2>
            <ol>
                <li>
                    <a href="produto1.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura7.png" alt="miniatura7">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto2.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura8.png" alt="miniatura8">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto3.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura9.png" alt="miniatura9">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto4.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura10.png" alt="miniatura10">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto5.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura11.png" alt="miniatura11">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
                <li>
                    <a href="produto6.html">
                        <figure>
                            <img src="mirrorfashion/img/produtos/miniatura12.png" alt="miniatura12">
                            <figcaption>Fuzz Cardigan por R$ 129,90</figcaption>
                        </figure>
                    </a>
                </li>
            </ol>
 
        </section>
    </div>

 

CSS

CSS

 
.painel li {
    displayinline-block;
    vertical-aligntop;
    width120px;
    margin-2px;
    padding-bottom10px;
    }
 
.painel {
    margin10px 0;
    padding10px;
    width445px;
    }
 
.painel h2 {
    font-size24px;
    font-weightbold;
    text-transformuppercase;
    margin-bottom10px;
}
 
.painel a {
    color#333;
    font-size14px;
    text-aligncenter;
    text-decorationnone;
}
 
.novidades {
    floatleft;
    background-color#F5DCDC;
}
 
.mais-vendidos {
    floatright;
    background-color#DCDCF5;
}
 
figure {
    margin10px;
    padding-right30px;
}
 
figcaption {
    font-styleitalic;
    font-size10px;
}

Como está:

image.png.5bdf448393d4a0b80f64246fed402fda.png

Como deveria ficar:

image.png.246a978b266720c242a134b89ff0b2c1.png

Podem me dar um help?

 

 
Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

 

Em 25/04/2021 em 21:32, Wesley Coelho disse:
.painel li {
    displayinline-block;
    vertical-aligntop;
    width120px;
    margin-2px;
    padding-bottom10px;
    }

remova o -bottom

Edited by wash
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      149264
    • Total Posts
      645605
×
×
  • Create New...