Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

7DSniper

macrumors regular
Original poster
Apr 15, 2012
130
0
South Florida
I have a clients section on my website and my paragraphs are elongated on iPhone/iPad. Can some one shed some light why iOS would render the code this way.

http://www.hooddesigns.com/clients.html

Thanks for any help.
 

Attachments

  • website 1.PNG
    website 1.PNG
    528.5 KB · Views: 129
  • website 2.PNG
    website 2.PNG
    394.8 KB · Views: 117
Last edited:
At a glance I'd bet it's due to the massive left margin you've got on your client container id and it's variants.

FYI, putting big margins on those like you're doing isn't a very resolution friendly way of centering things. Contain them all in a div of a certain width and give it margin: howevermanypx auto; and that'll place it in the horizontal center of your page for you.
 
I am brand new to HTML and CSS haha

I was having a hard time putting paragraphs next to images so by trial and error with margin adjustments i got it lined up the way I wanted. I am sure it was not the proper way to do it.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.