1
the code itself, that’s right, but when I put it in one, it looks like the content goes up, leaving the following components up
need to figure out the error:
.thumb {
width:33%;
height:auto;
text-align:center;
float:left;
}
@media screen and (max-width:800px) {
.thumb {
float: none;
text-align:center;
vertical-align:middle;
width: 100%;
width:auto;
}
}
and I use it this way to keep it aligned:
<div class="thumb">
<img src="images/image" alt="" title=""/>
<h3>TESTE</h3>
<p>TESTE</p>
</div>
there is jsFiddle as requested: new jsFiddle
at first it seems to be all right, but when you resize the jsFiddle screen, you can see the error
I really need to figure this out!! someone can help me??
Can you do a jsFiddle with an example? and explain what is failing and with what resolution...
– Sergio
is the following, the code is right, as you can see. But if I add something else under the code, it goes "up". What might be the error??
– AnthonyKamers
It looks good on jsFiddle. What doesn’t work for you?
– Sergio
Sergio, I made a new example to demonstrate the error. If you resize the page, you can see that it is black where it is white. How can I fix this??
– AnthonyKamers
And what is the correct one? the horizontal or vertical one?
– Sergio
You have to resize the vertical line to be wider than 800px, as in css @media
– AnthonyKamers
I know that. And it gives different results. My question is: which of the black parts is correct? when it’s less than 800px or more than 800px
– Sergio
the part less than 800px. is correct as shown here: https://jsfiddle.net/Leb6xom4/2/
– AnthonyKamers
Is that how you want it? https://jsfiddle.net/4rsr99sj/
– Sergio
Yes, that’s right!! Thank you very much!! I didn’t even know I could use inline-block. Put as an answer there, please
– AnthonyKamers