+ Reply to Thread
Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By descalzo
  • 1 Post By essellar

Thread: div container?

  1. #1
    tonylundervold90 is offline x10Hosting Member tonylundervold90 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    11

    div container?

    I am working on developing a site. I am fairly new at this and am having a hard time with how the site views on my iPhone. When I view it on my computer it shows approx. 20 px of background image below the address bar on each page....which is how I set it up. However when I view it on the iPhone there is a significant amount more pixels of space after the address bar on all pages but the bio page. Any thoughts as to what may cause this? The site is www.jhsample.pcriot.com

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: div container?

    Sorry, brain lapse.

    Moving to Programming.
    Last edited by descalzo; 08-01-2011 at 12:03 PM.
    dinomirt96 likes this.
    Nothing is always absolutely so.

  3. #3
    tonylundervold90 is offline x10Hosting Member tonylundervold90 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    11

    Re: div container?

    If you go to www.jhsample.pcriot.com you can view all pages including the bio page. Thanks

  4. #4
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: div container?

    You are relying on the default margins and padding to provide the space at the top of the page. Set the margin and padding for the body element in your CSS to 0, and use a margin-top on the #container of 20px (or whatever value you want to use) to move the container down the page. Just watch out for any additional margins on elements inside the #container div (like headings) that may poke out of the top of the #container and force it down.
    karimirt47 likes this.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

+ Reply to Thread

Similar Threads

  1. Problem w/ my container
    By xcaliberse in forum Programming Help
    Replies: 8
    Last Post: 12-10-2008, 07:44 PM
  2. Expanding Container [Photoshop, Dreamweaver]
    By Woolie in forum Tutorials
    Replies: 0
    Last Post: 12-27-2005, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers