Hello I have situation in my queries where I have my content in table-cell
method when it is full size and I put a query to make it table-row however
it loses the full width of my boxes and the main div sticks to the other on top of it like so:
Do you have them wrapped in something defined with display:table so that the rows know that they all belong to the same table and so should all be the same width?
Would you consider starting down lower and doing something constructive with the row of team images? You might consider making the figure tags {display:inline-block} and deleting the table styles assigned to #ourteam and applying {text-align:center} instead. In that way, the row of images will wrap and center as the width of the page changes. The space between each images will not change. {display:table + cells} is only useful when the row does not need to wrap. These do. Notice the horizontal scroll bar?
No, not all. It is best to pick the technique that provides the results that you need. In this case, table/table-cells are not practical because the row cannot wrap. inline-blocks wrap easily and center nicely.
The <figure> objects have {padding-left:30px} assigned to provide space between them. I would suggest that you apply a symmetrical {padding:0 15px;} instead. In that way, they will be truly centered. (If you look carefully, the lower images boxes are slightly offset from those above at this moment.) Give it a try!
Considering the content in the right column, the text in the left column must be shorter than the height of the content in the right column to keep the heights equal.
Brief Pause to Reply to your post #13.
Continuing…
This is one of three “mission” boxes in the right column:
The “missions” containers are separated by <br> tags. That’s poor form. It would be better if you used vertical margins instead. And you’ll need to add the same margin above the top “missions” box or the top of #statements-icons at narrow widths which can be done with the media query… but not if these two containers are changed to table-rows at narrow widths… that’s not cool.
#about-intro, #statements-icons {
display: table-row; /* NOT! Change to display:block at narrow widths and go from there. */
}
The CSS needs more work, but his is all I’m good for tonight.
isnt this property used to hide things? it looks like it gave it more padding im not saying it is wrong but
I guess it is also use to hide content touching its respective box?