2 replies [Last post]
craigtaylor74
craigtaylor74's picture
Offline
Regular
Barcelona
Last seen: 16 years 43 weeks ago
Barcelona
Timezone: GMT+1
Joined: 2004-02-04
Posts: 31
Points: 0

I have a js ticker tape working well but i want to add a background image to give the impression that the text is contained within a rounded rectangle and disappears at the end, like this one :
http://www.britishsummer.com/.
BUT I can't get the text positioned well, see here: http://www.ctam.co.uk/news_ticker/1.htm. Any ideas on how I could move the text into the center of the image. I know it should be easy but with margin and padding I can't and absolute positioning does move it down but then the scrolling ticker effect gets broken.
Any ideas appreciated,
Craig.

http//www.ctam.co.uk

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 10 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

position a js ticker tape with css

Hi Craig,
line-height:40px; works for firefox and should work for others.

Hope that helps

craigtaylor74
craigtaylor74's picture
Offline
Regular
Barcelona
Last seen: 16 years 43 weeks ago
Barcelona
Timezone: GMT+1
Joined: 2004-02-04
Posts: 31
Points: 0

position a js ticker tape with css

yet again, thank you.

http//www.ctam.co.uk