my page is not rendering properly on smart phones

radha Padmasolala's Avatar

radha Padmasolala

Sep 04, 2014 @ 03:18 PM

My headers and footers are rendering only on a small part of the screen width while my main contect goes across the page correctly.
I am using this in styling headers and footers <meta content="width=device-width, initial-scale="1" name="viewport"/>

  1. 1 Posted by radha on Sep 04, 2014 @ 04:32 PM

    radha's Avatar

    can some one reply

  2. 2 Posted by Wing Ming Chan on Sep 04, 2014 @ 04:42 PM

    Wing Ming Chan's Avatar

    Hi radha,

    Can you confirm that in all of your stylesheets, there are no widths specified for the headers and footers?

    Wing

  3. 3 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 04:52 PM

    Padmasolala, Radha's Avatar

    Yes. Should I send all the files.

  4. 4 Posted by Wing Ming Chan on Sep 04, 2014 @ 04:54 PM

    Wing Ming Chan's Avatar

    Can you supply me a URL that I can check?

    Wing

  5. 5 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 04:57 PM

    Padmasolala, Radha's Avatar
  6. 6 Posted by Wing Ming Chan on Sep 04, 2014 @ 05:04 PM

    Wing Ming Chan's Avatar

    Let me understand you correctly. When you said header, do you mean the <header id="oit-header">? It seems to resize properly.

    One thing I noticed though is that the image wrapped inside h3 still has a width attribute and a style attribute. You might want to fix that first.

    Wing

  7. 7 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 05:26 PM

    Padmasolala, Radha's Avatar

    Now I get

    [cid:[email blocked]]

  8. 8 Posted by Wing Ming Chan on Sep 04, 2014 @ 05:30 PM

    Wing Ming Chan's Avatar

    Are you modifying the meta tag now? Can we focus on the <header> section and the image inside the top h3 element please?

    Wing

  9. 9 Posted by Wing Ming Chan on Sep 04, 2014 @ 05:33 PM

    Wing Ming Chan's Avatar

    I have just notice something. You still use a table for layout in the body, with width and so on. Is it a must? The left menu can never be hidden if it resides in a <td>.

    Wing

  10. 10 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 05:35 PM

    Padmasolala, Radha's Avatar

    No it was something from what I did before and it got fixed.

      Thank you it was the image and I removed it, and some of the sizing issue is gone.
      Any suggestions on what attributes an image should be given so it does do this.

  11. 11 Posted by Wing Ming Chan on Sep 04, 2014 @ 05:41 PM

    Wing Ming Chan's Avatar

    You need to remove the width and height attributes from your <img> element. Specify max-width:100%; in your stylesheet instead.

    Wing

  12. 12 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 05:42 PM

    Padmasolala, Radha's Avatar

    I will do that. Thank you so much.

  13. 13 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 05:43 PM

    Padmasolala, Radha's Avatar

    What is the other way of doing that. It was easiest to put a table there.

  14. 14 Posted by Wing Ming Chan on Sep 04, 2014 @ 05:51 PM

    Wing Ming Chan's Avatar

    You certainly want to use <div> and other html5 elements instead. Check out Emory University. I also started a demo subsite within in my site, though it is not finished because I moved my focus to web services instead.

    Wing

  15. 15 Posted by Padmasolala, Ra... on Sep 04, 2014 @ 05:52 PM

    Padmasolala, Radha's Avatar

    Thank you very much. I appreciate it. You can close this issue.

  16. Charlie Holder closed this discussion on Sep 05, 2014 @ 06:11 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac