joetinger
joetinger

Reputation: 2729

Get rid of marquee padding

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;

}

Upvotes: 0

Views: 2876

Answers (1)

Albert Xing
Albert Xing

Reputation: 5788

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

So:

p { margin: 0; }

JSFiddle

Upvotes: 4

Related Questions