r/csshelp • • Nov 10 '23
centering elements in different flexboxes
imagine you have two flexboxes. One of them contains one element while the other contains two elements. is there a way to center, for example, the first element of the second flexbox with the one element in the first flexbox. In other words, how can i align two unrelated elements without just doing trial and error until i get something that looks right, i want something that is exactly right. Can i still use flexboxes here or is grid better?
3
Upvotes
View all comments
Show parent comment
2
u/[deleted] Nov 10 '23
sorry, poor wording from me i cant send code right now but what my project is about is a drawing board. theres three parts: a title, the board, and settings to the left of the board. the title is in a flexbox separate from the board and the settings, who are in the same flexbox. I want to vertically align the title and the drawing board, but the settings presence is affecting this ive been trying max-width and gap and its worked but i want something exact, ive only been doing trial and error so far. hopefully this clears stuff up, im new to css