Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

Flexbox makes my text purple, why i can`t change it? [duplicate]

$
0
0

The problem is whatever i`m trying to do, flexbox makes my text purple in button form. When i do button without flexbox everything goes perfect, white text.

Purple color text in button

HTML CODE BELOW :

<body><div class="container"><div class="button1"><a href="#">View course</a></div><div class="button2"><a href="#">View course</a></div><div class="button3"><a href="#">View course</a></div><div class="button4"><a href="#">View course</a></div><div class="button5"><a href="#">View course</a></div></div></body>

CSS CODE BELOW :

.container {    display: flex;    flex-direction: column;    justify-content: space-evenly;    margin-left: -900px;    align-items: center;}.container .button1 {    color: antiquewhite;    text-decoration: none;    position: absolute;    width: 130px;    background: black;    font-size: 20px;    border-radius: 10px;    text-align: center;    padding: 10px;}

Expected white text color.


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>