KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
For a client, I need to put together an absolute div to the left of the body containing an advertisement. The only way I have figured out how to do this thus far is to create an absolute div. The issue here is that in the absolute positioned div, there is a black space (which is the end of the body) and I need to have this "gutter space" ad hugging the page. To account for this, the best method is to position this a set number of pixels away from the center of the page. I thought I could do this by the following code: position: absolute; left:50%; margin-right:500px; However, this just keeps the div in the center of the page. Is it possible to position an absolute div from the center of a page?
Tags (comma-separated)
Save Edits
Cancel