Reputation: 172
Hi guys I have a href on my page but it's waaay to wide and i've tried adding display:block's to it but it didn't help.
I have a lot of CSS so I think I shouldn't link my whole document, it's a mess.
I can give the link on which you might be able to test?
It's about the changing links under the slider on the frontpage.
Upvotes: 0
Views: 2472
Reputation: 11
I got the same problem but then I realized I just forgot to close with an </a>
tag
Upvotes: 1
Reputation: 1312
Use:
.cycle-slideshow a {
display: inline-block;
}
EDIT: as pointed in the comments you have to override this behavior also in the pseudo-states (hover, focus and active). You can force that rule using display: inline-block !important;
or with:
.cycle-slideshow a,
.cycle-slideshow a:focus,
.cycle-slideshow a:hover,
.cycle-slideshow a:active {
display: inline-block;
}
Upvotes: 4
Reputation: 1825
The display:block;
is what causes the problem because it extends them to 100% width. Remove the display:block;
from the link-style and also from the :hover-style
.
Upvotes: 1