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.

Div with float right has extra top margin

Featured Replies

Hi

 

I am working on this new design. Sorry for having to blackout some content. My question is with the alignment. If you look at the image, you will see an HTML form on the left and a 'How it works' section on the right. This is how I have set it

 


  •  
  • Both the form and the 'How it works' section are under one master div tag with a margin-left of 150px (to align with the logo) and width of 1024px
  • Howitworks is a div in itself with width 400px and float:right
  • HTMLform is a div with margin-left:0 and width set to 500px
     

 

Now, I don't understand why the Howitworks seems to dropping below the form window. I seem to fix it by setting a margin-top in negative for Howitworks, but isn't that bad programming practice. Also, that seems to mess it up on IE.

 

Could someone help me out here.

post-36910-0-14860000-1330756849_thumb.png

Edited by Anon D

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.