Pelleque Posted March 7, 2019 Share Posted March 7, 2019 Hello, first of all, sorry for my bad English, I have a small mismatch that I do not know how I can change it, I can not find the part of the code where to do it.I would like the categories to be aligned vertically, that is, in the center. I would also like to reduce that white stripe a bit.Thank you, I wait your answer. Link to comment Share on other sites More sharing options...
BrainSuperGlue Posted March 8, 2019 Share Posted March 8, 2019 Link to comment Share on other sites More sharing options...
Pelleque Posted March 8, 2019 Author Share Posted March 8, 2019 8 hours ago, BrainSuperGlue said: But this is for align horizontally, I want to align vertically Link to comment Share on other sites More sharing options...
direwald Posted March 8, 2019 Share Posted March 8, 2019 Could you post the site address? Can't give you very precise info without seeing the code. If the div containing the navigation bar is streched vertically as much as the logo, you should be able to vertically center it with CSS vertical-align: middle Link to comment Share on other sites More sharing options...
Pelleque Posted March 8, 2019 Author Share Posted March 8, 2019 1 minute ago, direwald said: Could you post the site address? Can't give you very precise info without seeing the code. If the div containing the navigation bar is streched vertically as much as the logo, you should be able to vertically center it with CSS vertical-align: middle There is: http://s773038918.mialojamiento.es/ I was searching the exact element to vertical align, but I can't find it. Link to comment Share on other sites More sharing options...
direwald Posted March 9, 2019 Share Posted March 9, 2019 If you give your "row" class that includes your header elements the attributes display: flex; align-items: center; It's gonna vertically center all the elements within. I'd then play with the margins on the rest of those elements to make them properly centered, though there might be a better way of doing that. Link to comment Share on other sites More sharing options...
Pelleque Posted March 10, 2019 Author Share Posted March 10, 2019 On 3/9/2019 at 11:18 AM, direwald said: If you give your "row" class that includes your header elements the attributes display: flex; align-items: center; It's gonna vertically center all the elements within. I'd then play with the margins on the rest of those elements to make them properly centered, though there might be a better way of doing that. Nono, I have this: And I want this (paint edited): Link to comment Share on other sites More sharing options...
direwald Posted March 11, 2019 Share Posted March 11, 2019 If you do the changes I wrote, it will do what you ask for, or it'll at least get you closer. It will make the menu and the search bar divs vertically centered within the row. You can then work with those divs themselves to get them where you want to. Link to comment Share on other sites More sharing options...
Zeryk Posted September 12, 2019 Share Posted September 12, 2019 On 3/11/2019 at 7:26 PM, direwald said: If you do the changes I wrote, it will do what you ask for, or it'll at least get you closer. It will make the menu and the search bar divs vertically centered within the row. You can then work with those divs themselves to get them where you want to. right. I suppose I missed the part "vertically centered" in topic name ;-( I'm looking for horizontally centered , and non of the solution I've found so far doesn't work ;-( Link to comment Share on other sites More sharing options...
Zeryk Posted September 12, 2019 Share Posted September 12, 2019 (edited) Yes, I would like to achieve similar effect as Pelleque posted on last picture. Or at least full menu bar with text in the middle . Logo above that , also in the middle. No search bar required. Edited September 12, 2019 by Zeryk (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now