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.

Moving Div's

Featured Replies

Hey guys once again I need some help. I cant seem to move div tags where I want them to be. I used this code (i.e

#body

width: 100px;

height: 100px;

top: 25px;

left: 50px;

 

this is just an example of me using the top and left codes. Are they correct? coz nothing seems to happen to the div it just sits there. Pls help me out guys. Really appreciate it :)

I think the problem is your body ID for the div. Because body is the name of the parent element for all your other elements, your CSS is probably confused. Change your ID to bodyContent or whatever, and it should work. And don't forget your curly braces - like this:

#bodyContent {
width: 100px;
height: 100px;
top: 25px;
left: 50px; 
}

Hey guys once again I need some help. I cant seem to move div tags where I want them to be. I used this code (i.e

#body

width: 100px;

height: 100px;

top: 25px;

left: 50px;

 

this is just an example of me using the top and left codes. Are they correct? coz nothing seems to happen to the div it just sits there. Pls help me out guys. Really appreciate it :)

 

Use position:absolute; in above styles.

  • Author

Yeh I knw about the curly brackets I was just doing a demo to show how I use top and left :) I will try it out and let u guys knw the result :)

 

Edit I tried it but no luck: code if wat I have in css it this

 

#bodycontent {

position: absolute;

height: 100px;

width: 100px;

top: 25px;

left: 50px;

}

 

 

It still sits there :/

Edited by DirtyLilFreak

  • Author

Sorry I dont have a link at the moment. What I meant by Sitting there is the div box is where I already added it to. on the left handside top corner. It doesnt move when I add top and left to the css.

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.