# How do you create marquee text with an specific font, color and size?

**URL:** <https://forum.readymag.com/t/how-do-you-create-marquee-text-with-an-specific-font-color-and-size/1223>\
**Category:** Animations\
**Created:** [February 16, 2023, 6:27pm UTC](https://forum.readymag.com/t/how-do-you-create-marquee-text-with-an-specific-font-color-and-size/1223 "2023-02-16T18:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![furtadorama](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@furtadorama](https://forum.readymag.com/u/furtadorama)\
**Post date:** [February 16, 2023, 6:27pm UTC](https://forum.readymag.com/t/how-do-you-create-marquee-text-with-an-specific-font-color-and-size/1223/1 "2023-02-16T18:27:29Z")

</div>

I was just wondering how to create this using animations. I am doing this with this code below from [HEADLESS.HORSE](https://forum.readymag.com/u/HEADLESS.HORSE) But I want to specify the font, size and color.

Thanks!

```auto
<div class="marquee">
  <div>
    <span><a href="URL HERE?">HELLO WORLD THE MESSAGE CAN BE ANY LENGTH. MESSAGE 1.</a></span>
    <span><a href="URL HERE?">HELLO WORLD THE MESSAGE CAN BE ANY LENGTH. MESSAGE 2.</a></span>
  </div>
</div>

<style>
  body {
    margin: 20px;
  }

  .marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 25px;
  }

  .marquee div {

    position: absolute;
    display: block;
    overflow: hidden;
    width: 200%;
    height: 30px;
    animation: marquee 10s linear infinite;
  }

  .marquee span {
    float: left;
    width: 50%;
  }

  @keyframes marquee {
    0% {
      left: 0;
    }

    100% {
      left: -100%;
    }
  }
</style>
```

---

<div class="post-metadata">

**Author:** ![furtadorama](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@furtadorama](https://forum.readymag.com/u/furtadorama)\
**Post date:** [February 16, 2023, 7:54pm UTC](https://forum.readymag.com/t/how-do-you-create-marquee-text-with-an-specific-font-color-and-size/1223/2 "2023-02-16T19:54:57Z")

</div>

Hi,  
I am using this code below but the text appears cut off and in a blue color. Any ideia on how can I fixed it.  
Thanks

```auto
<div class="marquee">
  <div>
    <span><a href="URL HERE">HELLO WORLD THE MESSAGE CAN BE ANY LENGTH. MESSAGE 1.</a></span>
    <span><a href="URL HERE">HELLO WORLD THE MESSAGE CAN BE ANY LENGTH. MESSAGE 2.</a></span>
  </div>
</div>

<style>
  body {
    margin: 20px;
  }

  .marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 25px;
  }

  .marquee div {
    position: absolute;
    display: block;
    overflow: hidden;
    width: 200%;
    height: 30px;
    animation: marquee 10s linear infinite;
    background-color: transparent;
  }

  .marquee span {
    float: left;
    width: 50%;
    font-size: 48pt;
    font-family: 'HKCompression-HeavyCondRounded', sans-serif;
    color: #000000;
    padding: 0 20px;
  }

  @keyframes marquee {
    0% {
      left: 0;
    }
    100% {
      left: -100%;
    }
  }
</style>

```

---

<div class="post-metadata">

**Author:** ![neueMeta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/neuemeta/32/92_2.png) [@neueMeta](https://forum.readymag.com/u/neueMeta)\
**Post date:** [February 17, 2023, 8:23am UTC](https://forum.readymag.com/t/how-do-you-create-marquee-text-with-an-specific-font-color-and-size/1223/3 "2023-02-17T08:23:09Z")

</div>

blue probably because it is a link and if you do not set up a css stye for the link it gets shown in “default blue”.

and you can play around with the width in the css and see if it still gets cut off.
