Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to append a clickable href link? #11

Closed
dummerfranz opened this issue Apr 26, 2021 · 3 comments
Closed

How to append a clickable href link? #11

dummerfranz opened this issue Apr 26, 2021 · 3 comments

Comments

@dummerfranz
Copy link

Im having problems with appending a clickable href to a figure.
The width isnt expanding to 100%

<a href="google.de"> <figure class="c4-izmir c4-border-top-left" style="width: 100%;height: 100%;"> <img src="https://source.unsplash.com/WLUHO9A_xik/400x300" alt="Sample Image"> <figcaption> // Teamsport Bereich </figcaption> </figure> </a>

How to make an object clickable with a href?

@C-Lodder
Copy link
Contributor

You're setting the <figure> to 100% width of the <a>.
Have you made sure the <a> has the correct width?

@dummerfranz
Copy link
Author

dummerfranz commented Apr 26, 2021

yes works fine with any other element inside
Except Izmir figures

height is working fine though

@dummerfranz
Copy link
Author

solved the problem.
One must set padding: 0px;

Thanks for your help anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants