Jump to content

Please Help me. Please.


phpmania1

Recommended Posts

position absolute allows you to move an element (with top/bottom and left/right) in relation to it's closest parent with position relative. if no parent has that, it does it from the body.

 

now, you don't want to be ##px left and ##px top from the BODY, you want it from the direct parent. that way if the ad is there, and it moves your content down, it won't throw things off.

 

/* Set the banner's parent to have relative position */
#header_right {
  position: relative;
}
/* Position the banner absolute */
#mrbanner {
   position: absolute;
   top: 1px;
   left: 180px;
}

 

...adjust top & left to your liking

Link to comment
Share on other sites

i took the banner off, im trying new ones. this is what i mean,

 

#mrbanner {
            position:absolute;
            top:1px;
            bottom:1px;
}

 

header_right****** is not in my code, and index.html does not call for it there is no

 

* header_right

 

so do i add it into mr banner?

#mrbanner {
            position:relative;
            position:absolute;
            top:1px;
            bottom:1px;
}

 

Or would i go to my index.html and call <div id mrbanner>?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.