Skip navigation
Currently Being Moderated

Mobile content div contracts from header photo

Sep 22, 2012 5:12 PM

Hi, I'm using DW CS6  on a Mac. I've set a media query and a mobile.css page and this site works pretty well on the iPhone.  But I suspect that the header photo is too large so the content div isn't stretching out to 95% like it should.

 

Http://www.larryparrishpiano.com/mobile.css

 

I've tried just having a re-sized smaller photo and putting that in the CSS page but that didn't work.

 

I appreciate any tips on how to fix this if possible.

 

Many Thanks,

 

Frank B.

 
Replies
  • Sudarshan Thiagarajan
    3,738 posts
    Oct 15, 2010
    Currently Being Moderated
    Sep 22, 2012 10:50 PM   in reply to brightbelt

    Can you post a screenshot of the area that you want resized? I'm sorry I fail to understand what you mean by 'content' div. Is it just the area after navigation or is it the entire container?

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    3,738 posts
    Oct 15, 2010
    Currently Being Moderated
    Sep 23, 2012 1:30 AM   in reply to brightbelt

    Can you crop your header image to just hold Larry Parrish and replace the CSS for mobile CSS header background?

     

    .container #header {
    height: 80px;
    width: 100%;
    background-image:url(Larryheader3-resized.png);
    background-repeat:no-repeat;
    background-position:top left;
    background-color: #000;

    Regarding the #left area, your width is set to 70% in main CSS. Your Mobile CSS width for #left, make it 95% and add !important to your parameter.

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    3,738 posts
    Oct 15, 2010
    Currently Being Moderated
    Sep 23, 2012 6:46 AM   in reply to brightbelt

    Found the culprit.

     

    For mobile layout, mobile.css, #left, change width to

     

    width: 85% auto;

    For main layout, in your html inline CSS,

     

    .container #nav ul {
    margin: 0px;
    font-size: 12px;
    font-weight: bold;
    overflow: hidden;
    width: 100% auto;
    font-family: arial, helvetica, sans-serif;
    text-align: center;
    }

    This should fix the extra space on the right side.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points