Results 1 to 3 of 3

Thread: problem with text scroller

  1. #1
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem with text scroller

    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?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Well, did you try to left justify the scroller? If you hadn't, it may work. Just try it, and tell me more.

    -magicyte

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You should be able to center a scroller by giving its outermost DIV a CSS "margin" property, for example:

    Code:
    #pscroller1{
    width: 200px;
    height: 100px;
    border: 1px solid black;
    padding: 5px;
    background-color: lightyellow;
    margin: 0 auto;
    }
    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:
    <!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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •