0

Is there anyway to get rid of the marquee padding? I was never able to figure this out, I know you can change the width and height but what about padding? I'm trying to change the amount of space between the wording and the top and bottom.

jsfiddle

HTML:

<marquee width="50%">
    <p>Sample ticker text goes here</p>
</marquee>

CSS

marquee {
    font-family: wallStreetFont;
    font-size:50px;
    color:red;
    background-color: black; 
    border: 1px solid #ccc;
    padding:0px;
    margin:0px;

}
joetinger
  • 2,589
  • 6
  • 29
  • 43
  • 2
    It's 2014 and somebody is still using marquee? – Dunno Jul 10 '14 at 21:10
  • 3
    is this a *retro* website? Maybe this could help you https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee BTW you can achieve a marquee like effect with CSS3. See here http://stackoverflow.com/questions/21233033/css3-marquee-effect – microspino Jul 10 '14 at 21:10
  • 1
    You should avoid using `` because it is **non-standard** and **obsolete** - http://www.w3.org/TR/html5/obsolete.html#the-marquee-element-0 – Albert Xing Jul 10 '14 at 21:13
  • ah thanks I appreciate all the feed back! – joetinger Jul 11 '14 at 12:25

1 Answers1

4

It's not the marquee, it's the p tag that has the padding (margin, in this case).

So:

p { margin: 0; }

JSFiddle

Albert Xing
  • 5,620
  • 3
  • 21
  • 40