We help IT Professionals succeed at work.

Why is there a gap in this string?

Bruce Gust
Bruce Gust asked
on
Head out to http://www.countryshowdown.com and you'll see a scrolling text marquee at the top. It works great but I want to tighten things up a bit so there's no gap between the beginning and the end.

How?

Source code is available just by looking at the site...
Comment
Watch Question

Top Expert 2010

Commented:
are you using <br> inside your marquee statement?
Mike DSolution Consultant

Commented:
Have you tried applying one (or both) of these

letter-spacing:-1px
word-spacing:-1px;

 on td.marquee?

JD
Most Valuable Expert 2011
Top Expert 2016

Commented:
I see a scrolling text marquee but it is not at the top.  It appears to be below a banner that is perhaps 200 - 400 PX high.  Is that the marquee you want us to look at?
Freelancer
CERTIFIED EXPERT
Top Expert 2010
Commented:
The gap seems to be between iemarquee and iemarquee2: you can try to play with margin or to set the float attribute to left for these elements. If you try this second solution, remember to add immediately after the two iemarquee a new div <div style='float: clear'></div to reset the natural flow of the elements.
Bruce GustPHP Developer

Author

Commented:
In the iemarquee2 section I put, "margin-left:0;" and BAM, problem solved!

Thanks!
Marco GasiFreelancer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Glad to help you. Let me do an 'errata corrige': to clear the previous float statement and return to the normal document flow you have to set the clear property to both

<div style="clear: both"></div>

Cheers

Explore More ContentExplore courses, solutions, and other research materials related to this topic.