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.

Newb coding problem

Featured Replies

post-23718-036735500 1289312987_thumb.png This is the original design...

 

As i try to position the contentbox in html, above the mountain The top margins goes down see below

 

post-23718-046929800 1289312996_thumb.png

 

 

#wrapper {

background-image: url(images/Achtergrond.png);

background-repeat: no-repeat;

height: 100%;

width: 100%;

margin-top: -14px;

margin-left: -9px;

}

#wrapper #contentbox {

background-image: url(images/Contentbox.png);

background-repeat: no-repeat;

height: 614px;

width: 897px;

margin-left: 365px;

margin-top: 65px;

 

 

Can someone figure this out for the newbie ?

It would be helpful to see all the code including html.

It could be margin collapse if you have h or p tag very near the top of the first div. What happens if you add

* { margin: 0; padding: 0; }

at the very top of your stylesheet? You will have to add back specific margins and padding where you want them in ids or classes.

  • Author

Above did not work,

 

Although when i insert the image in the wrapper and then give it an style like :

 

#wrapper img {

margin-top: 65px;

margin-left: 395px;

}

 

Then the result is fine. But i cannot code it <_<

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.