Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IMG Does Not Align Properly in iPhone

Featured Replies

Hi there!

 

I have a responsive layout that I am designing for a client meant to easily change sizes between tablet and mobile phone screen dimensions. While the content and header itself remains responsive, I have a banner that repeats across the x-axis underneath the centered logo image, which seems to adjust just fine (called out in the CSS background-image element). However, the image, which is called out in the HTML, does not align to the repeating banner as it does in the tablet version, and instead bumps up about ten or so pixels.

 

Other things to note: This only happens on iPhones and iPods. Shows up great on Android devices no matter what the dimensions.

 

The HTML code (this is inside a container div):

 

<div id="logof">
 <img src="images/clientlogo.png" alt=""/>
</div>

 

And the corresponding CSS for that div:

 

#logof
{
position:relative;
margin-top:30px;
margin-left:auto;
margin-right:auto;
text-align:center;
width:100%;
height: 117px;
background-image:url(../images/logorepeat.png);
background-position:0px 26px;
background-repeat:repeat-x;
z-index:50;
}

Edited by mpinsky

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.