简体   繁体   中英

Changes occur in my divs when I use the "a" tag

Changes occur in my divs when I use the "a" tag.I wrote 600 lines of code and my site is breaking. It should have no effect when I use the "a" tag. NOTE: " TAG" i never classed.

Example:这是一个例子

<a href="#">
    <div id="logokutu1" class="deneme ortalama neozel logoborder col col-md-a col-lg-a">
        <img width="100" height="22" src="marketplace logo/ne-lazimsa-logo.png">
    </div>
</a>

Generally <a> have inline display and you must change display to block or inline block and then Give it your styles

for change <a> display just do like this

html :

<a class="test"></a>

css :

.test{
    display : inline-block
}

or you can change display to block only

after this you can set whith and height and Whatever you want to <a> tag

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM