Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Problems with div alignment

    Hi Guys,

    I have this code here below:-
    <div id="motioncontainer" style="position:relative;overflow:hidden;width:800;">
    <div id="motiongallery" style="position:absolute; white-space: nowrap; left: 0px; top: -28px;color:#00FF00">
    <nobr id="trueContainer"> <a href="images/winter.jpg" rel="enlargeimage::click" rev="loadarea" title="This is an example1"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="images/Sunset.jpg" rel="enlargeimage::click" rev="loadarea" title="This is an example"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="javascript:enlargeimage('images/winter.jpg', 300, 300)"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="http://www.ccc.com"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a>
    <a href="#"><img src="images/winter.jpg" width="128" height="125" border=1></a></nobr></div>
    </div>

    I cannot get the image container to align on the centre of the page. I have tried adding align="center" but it does not work. How can I go about doing this? Thanks.

    Regards,
    John

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Read the 8th one(and others ) from the sticky http://www.codingforums.com/showthread.php?t=35014
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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