Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-19-2011, 12:37 AM   PM User | #1
vvaldo
New to the CF scene

 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
vvaldo is an unknown quantity at this point
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.
vvaldo is offline   Reply With Quote
Old 06-19-2011, 12:40 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Remove the width assignment.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 06-19-2011, 12:55 AM   PM User | #3
vvaldo
New to the CF scene

 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
vvaldo is an unknown quantity at this point
You my friend, just blew my mind.
vvaldo is offline   Reply With Quote
Old 06-19-2011, 01:00 AM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
My pleasure.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Tags
align, css, resize

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:35 AM.


Advertisement
Log in to turn off these ads.