SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Aug 2003
    Location
    England
    Posts
    391
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    HTML/CSS issue on handheld/mobile

    Hi all,

    Whilst browsing www.sherwoodsgroup.co.uk on a handheld, the page scrolls horizontally very slightly which screws up the header/footer background image.

    Can anyone see why this is? I can't seem to work it out!

    Many thanks

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,586
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Two things you can do:

    Add this to your CSS:

    Code:
    header, nav, #hero, #content, footer {min-width: 1020px;}
    and/or add this to the head of your document:

    Code:
    <meta name="viewport" content="width=1020px">
    Either of those will probably do the job, and it might be worth having them both in there.

  3. #3
    SitePoint Addict
    Join Date
    Aug 2003
    Location
    England
    Posts
    391
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Two things you can do:

    Add this to your CSS:

    Code:
    header, nav, #hero, #content, footer {min-width: 1020px;}
    and/or add this to the head of your document:

    Code:
    <meta name="viewport" content="width=1020px">
    Either of those will probably do the job, and it might be worth having them both in there.
    Excellent, many thanks Ralph.


Bookmarks

Posting Permissions

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