I am trying to center a text scroller (scroller at http://www.dynamicdrive.com/dynamicindex2/crosstick.htm) on my webpage and it causes the content of the scroller to go out of frame. Does the scroller have to be left justified?
I am trying to center a text scroller (scroller at http://www.dynamicdrive.com/dynamicindex2/crosstick.htm) on my webpage and it causes the content of the scroller to go out of frame. Does the scroller have to be left justified?
Well, did you try to left justify the scroller? If you hadn't, it may work. Just try it, and tell me more.
-magicyte
You should be able to center a scroller by giving its outermost DIV a CSS "margin" property, for example:
Note that in order for this to work properly in IE though, make sure your page contains a valid doctype at the very top, such as:Code:#pscroller1{ width: 200px; height: 100px; border: 1px solid black; padding: 5px; background-color: lightyellow; margin: 0 auto; }
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
DD Admin
Bookmarks