1 Vote Vote

Setting My Floating Div To The Correct Area

Posted by topdog 946 days ago Questions| nbsp div correct All
I am having trouble getting my div to go to the correct place.

CODE
#layer1 {
    position:absolute;
    left: 75%;
    top: 250px;
    visibility: hidden;
    width: 200px;
    height: 75px;
}


Now for my screen this puts to where i need it but on screens with different resolutions it is not.
Basically what I was thinking is if i could set the left property to 50% + 340px. This way when it loads, it will put the div 10px off the left side of my main div.

First of all is this even possible? and if so how would i accomplish this.
Discuss Bury


Who Voted for this Question