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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Align and resizing question

    Hi all, I've been playing around the Google maps API and I'm having some trouble with the css.

    I'm trying to align the map to the right side of the browser window with 200px on the left side for some text.

    Here is the css part:

    #map {
    position: absolute;
    top: 85px;
    left: 200px;
    right: 0px;
    height: 480px;
    width: 100%;
    }

    Right now the left and right positioning is where I want it, but the width is 100% of my computer monitor (1200px). I want to get rid of the scroll bar at the bottom and have it adjust automatically whenever I resize the window.

    Any suggestions would be greatly appreciated. I've already spent the whole day trying to figure this one detail out and it's driving me crazy.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Remove the width assignment.

  • #3
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You my friend, just blew my mind.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    My pleasure.


  •  

    Tags for this Thread

    Posting Permissions

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