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

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>?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.