M
M
Maxim Tyulpakov2016-02-11 10:44:21
css
Maxim Tyulpakov, 2016-02-11 10:44:21

Where did the dashes come from after connecting the Lightbox?

0876c2e14f8745fb9f42c94480763e95.PNG
Connected Lightbox from the site
There are no dashes in the code, but they come from somewhere.

<figure class="img-lefting">
                        <p>
                            <a data-title="Загородный бассейн" data-lightbox="roadtrip" href="images/fontain-01.jpg">
                                <img class="bold" src="images/fontain-01.jpg" width="240">
                            </a>
                            <a data-title="Загородный бассейн" data-lightbox="roadtrip" href="images/pool-02.jpg">
                                <img class="bold" src="images/pool-02.jpg" width="240">
                            </a>
                            <a data-title="Загородный бассейн" data-lightbox="roadtrip" href="images/pool-01.jpg">
                                <img class="bold" src="images/pool-01.jpg" width="240">
                            </a>
                            <a data-title="Загородный бассейн" data-lightbox="roadtrip" href="images/land-05.jpg">
                                <img class="bold" src="images/land-05.jpg" width="240">
                            </a>
                        </p>
                    </figure>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-02-11
@MaXComp

This is because links have text-decoration: underline; stands by default. Here spaces are underlined :)
Or put text-decoration: none; links, or write it without hyphenation in the form: <a><img /></a>
UPD: and by the way, using <figure> in this case is extremely wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question