Solved

Stop floating image from moving

Posted on 2011-03-15
2
277 Views
Last Modified: 2012-06-21
Please visit:

http://ash.kent.campuswebstore.com/

I want the link for "Dollars spent in the..." in the upper right hand corner to not move when the browser window is resized.


Here is the HTML and inline CSS:


<div style="position:relative;top:200px;float:right;margin-right:50px;margin-top:20px;width:200px;">
            <a href="http://www.journeyed.com/select/go/NACKSAS" >Dollars spent in the KSU Ashtabula Bookstore stay on campus in support of all KSU Ashtabula students

and Kent Ashtabula Campus activities.</a>
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
McOz earned 500 total points
ID: 35140871
I think you need to place the <div> inside the "mainContent" div, rather than inside the "outerWrap" div.

"outerWrap" gets wider when the window is resized, whereas "mainContent" remains at the same width, and the "dollars spent" div would stay in the same positioned relative to it.

Cheers
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 35141670
Yep!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question