+ 1

How can I make center my menu blocks or menu list in css class, Need help players. The code is below.

https://code.sololearn.com/WP1fT90Xm6gz/?ref=app

10th Jul 2020, 9:20 PM
Naveen Ahmad
9 odpowiedzi
+ 2
Naveen Ahmad if on line 7 you add <div align="center"> and line 17 add another </div> close tag will that do what you are asking for ?
10th Jul 2020, 9:49 PM
BroFar
BroFar - avatar
+ 1
I didn't think about it. Thank you BroFar I got my answer... you are awesome!!!👍
10th Jul 2020, 9:55 PM
Naveen Ahmad
+ 1
Thanks Naveen Ahmad ... sometimes the easiest answers are looking straight at us but our eyes overlook. Have a good day.
10th Jul 2020, 9:58 PM
BroFar
BroFar - avatar
+ 1
HTML attribute, align is obsoleted, it's likely not be functioning on new released browsers. Use css to style it instead.
11th Jul 2020, 6:43 AM
Calviղ
Calviղ - avatar
+ 1
Use this css instead: .wrapper, .h5 { display: block; text-align: center; }
11th Jul 2020, 8:57 AM
Calviղ
Calviղ - avatar
+ 1
Naveen Ahmad I have tested this code works on your code. If you dont use this code, there are many other ways to align an element to center, using margin: 0px auto or flexbox also can align it to center too.
11th Jul 2020, 10:52 AM
Calviղ
Calviղ - avatar
0
Okay, Share your mind Code, if is there any code exist in CSS for making content center. I will be happy to get this!
11th Jul 2020, 8:45 AM
Naveen Ahmad
0
Calvin, we need block area alignment center instead of text alignment. It's not work over this code.
11th Jul 2020, 10:06 AM
Naveen Ahmad
0
Yeah! It is wonderful and working great in CSS. This is awesome to use for multiple block alignment and div need to make often keying of each block. I like your css code. Thanks Dear
11th Jul 2020, 11:20 AM
Naveen Ahmad