📅  最后修改于: 2023-12-03 15:00:59.575000             🧑  作者: Mango
The GME (GameStop) stock recently gained a lot of attention due to a battle between professional investors and Reddit users. The stock's value skyrocketed, resulting in a large influx of speculators. To commemorate this historical event, we created a CSS GME stock ticker that displays in-real-time GME stock data.
The GME Stock CSS ticker is implemented using CSS and HTML with the help of JavaScript. The core parts of the program are:
<div class="stock-ticker">
<div class="stock-name">
<div>GameStop Corp.</div>
<div class="stock-symbol">GME</div>
</div>
<div class="stock-quote">
<div class="stock-price">$</div>
<div class="price-data"></div>
<div class="price-change"></div>
</div>
</div>
The CSS code is responsible for implementing the stock ticker's design. Here's a snippet of the code:
.stock-ticker {
display: flex;
align-items: center;
justify-content: space-between;
font-family: sans-serif;
padding: .75rem;
color: #fff;
background-color: #2c2f33;
border-radius: 10px;
}
.stock-ticker .stock-name {
text-transform: uppercase;
font-weight: bold;
font-size: .875rem;
letter-spacing: -.025rem;
margin-right: 1rem;
}
.stock-ticker .stock-quote {
display: flex;
align-items: center;
}
.stock-ticker .stock-price {
font-size: 1.25rem;
font-weight: bold;
padding-right: .25rem;
}
.stock-ticker .price-data {
font-size: 1.5rem;
font-weight: bold;
padding-right: .5rem;
}
.stock-ticker .price-change {
font-size: 1.125rem;
font-weight: bold;
padding-left: .5rem;
border-radius: .25rem;
text-transform: uppercase;
}
The GME Stock CSS ticker is a fun and informative way to display the GME stock data. Its dynamic design and real-time updates make it a great addition to any website or blog that pertains to financial news.