Wednesday, September 13, 2023
HomeJavascriptWhy is the complying with CSS code not focusing my switch flat...

Why is the complying with CSS code not focusing my switch flat within a div component?


Techi11 47 mins earlier.

 Why is the complying with CSS code not focusing my switch flat within a div component? It shows up off-center on my website:

[code]<.
<< html>>.
<< head>>.
<< design>>
. container {
size: 100%;
display screen: flex;
justify-content: facility;
align-items: facility;
}

. btn {
background-color: # 3498db;.
shade: white;.
cushioning: 10px 20px;.
boundary: none;.
border-radius: 5px;.
}
<.
<.
<< body>>.

<< div course=" container">
<> < switch course=" btn">> Click Me<.
<.

<.
<.
[/code]

The switch appears to be somewhat towards the left side within the container. What am I missing out on in the CSS avoiding the switch from being flawlessly focused?
RELATED ARTICLES

Most Popular

Recent Comments