Zlatej kluk
KPCKevin Powell - Community
•Created by Armands Uiska on 4/13/2023 in #front-end
Can someone explain me this?
I know, the anchor element is set as flex container and content of this container is centered. The difference is that if you set flex value on property display on anchor element, the anchor element will take full width of it's containing block. If you set flex value on property display on button element, the button element won't take full width of it's containing block. I consider that this behaviour is different for button element.
14 replies
KPCKevin Powell - Community
•Created by Armands Uiska on 4/13/2023 in #front-end
Can someone explain me this?
If you apply display property to button, it doesn't take full width of the body element.
14 replies
KPCKevin Powell - Community
•Created by Armands Uiska on 4/13/2023 in #front-end
Can someone explain me this?
Yea, but he want to center button relative to body element like link anchor element.
14 replies
KPCKevin Powell - Community
•Created by Armands Uiska on 4/13/2023 in #front-end
Can someone explain me this?
Why do you need to have button as flex container?
14 replies
KPCKevin Powell - Community
•Created by Armands Uiska on 4/13/2023 in #front-end
Can someone explain me this?
Some browsers doesn't accept change of the display property on button element.
14 replies