Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 25, 2009, 11:58 PM   #1
kevindosi
macrumors regular
 
Join Date: Mar 2006
Use css to position an iframe within a div?

OK, So I would like to use a google latitude badge on my website. The only problem is that it's ugly and doesn't fit with my color scheme, plus it puts a bunch of text on the bottom that I don't want. The entire badge is actually an iframe. I put that iframe inside of a div with a limited height and overflow hidden so that you don't see all the garbage text at the bottom, but I still have a white frame around the map. I want to only show the map, with no white padding. Is there a way to move that iframe left and up inside of my div and further limit the width\height of the div to hide all the white padding? Here's an image of the badge if you don't know what it looks like. Any help would be much appreciated.

kevindosi is offline   0 Reply With Quote
Old Jul 26, 2009, 05:57 AM   #2
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
Yup, you make can make use of relative positioning to do so. I'd have to see the HTML involved to give specific ideas.
angelwatt is offline   0 Reply With Quote
Old Jul 27, 2009, 03:26 AM   #3
kevindosi
Thread Starter
macrumors regular
 
Join Date: Mar 2006
Quote:
Originally Posted by angelwatt View Post
Yup, you make can make use of relative positioning to do so. I'd have to see the HTML involved to give specific ideas.
Ah of course, I had to use relative positioning when styling the iframe. Thanks a lot for the help. You can see it in action at http://beforethecubicle.com/blog
kevindosi is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
thread Thread Starter Forum Replies Last Post
center an iframe with css? Starhorsepax Web Design and Development 11 Feb 25, 2014 04:09 PM
Using Javascript to Set the Height of a Div iMasterWeb Web Design and Development 11 Nov 14, 2009 08:43 PM
Using CSS to Replace Arial with Helvetica aido2002 Web Design and Development 3 Aug 3, 2009 09:23 PM
Use CSS to hide part of a frame? kevindosi Web Design and Development 3 May 19, 2009 01:41 PM
Help! Using CSS to make my first page and I'm stuck... Littleodie914 Web Design and Development (archive) 7 Dec 18, 2004 03:00 PM


All times are GMT -5. The time now is 10:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC