I'm making a small site and it contains categories.
I am trying to get these categorie containers all the same size but because the text in these container is not the same size, the container also varies in size. I tried giving each <li> a specific <div> but that didnt work out to well.
I attached the full code for the site to the post also in case I forgot something.
The image below is what I have now.
As you can see it also says "IMG here in the middle" thats because of a smaller problem, where if I put the img in the <li> the image is not centered in the middle. But more like this:
The colors of everything are purely there to make everything visible. A good example of what I would like to achieve is
Different lenghts of text, same size
in CSS
Posted · Edited by Go48websites
I'm making a small site and it contains categories.
I am trying to get these categorie containers all the same size but because the text in these container is not the same size, the container also varies in size. I tried giving each <li> a specific <div> but that didnt work out to well.
This is the HTML (only contains the list)
I attached the full code for the site to the post also in case I forgot something.
The image below is what I have now.
As you can see it also says "IMG here in the middle" thats because of a smaller problem, where if I put the img in the <li> the image is not centered in the middle. But more like this:
The colors of everything are purely there to make everything visible. A good example of what I would like to achieve is
https://play.google.com/store
the "popular games" "updated games" are all in containers the same sizes.
I'm sorry for this long post, and I hope you can help me.
Thanks in advance.
PROcategorie.css
PROcategoriekiezen.html