+ 1
How can I make center my menu blocks or menu list in css class, Need help players. The code is below.
9 Antworten
+ 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 ?
+ 1
I didn't think about it. Thank you BroFar I got my answer... you are awesome!!!👍
+ 1
Thanks Naveen Ahmad ... sometimes the easiest answers are looking straight at us but our eyes overlook.
Have a good day.
+ 1
HTML attribute, align is obsoleted, it's likely not be functioning on new released browsers. Use css to style it instead.
+ 1
Use this css instead:
.wrapper,
.h5 {
display: block;
text-align: center;
}
+ 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.
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!
0
Calvin, we need block area alignment center instead of text alignment. It's not work over this code.
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