[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Web site

Posted on 2011-10-24
7
Medium Priority
?
275 Views
Last Modified: 2012-05-12
Hi

I have the same background image set for my web pages -the background image consists of couple of red lines and a small circle.  I would like to keep the background image as other pages are still using this

I then added 5 different images (for 5 different web pages) over the small circle, when I zoom out of the web page it moves the images up or down, which results in two circles.  The background image and the 5 different images - is there a way if a user zooms out or zooms in the image follows the background image when zoomed

Thanks
0
Comment
Question by:SteptoeTeam
6 Comments
 
LVL 11

Expert Comment

by:level9wizard
ID: 37017879
Can you share some code?
What browser(s) are you zooming in/out with? Some web browsers have different zoom behavior.
0
 

Author Comment

by:SteptoeTeam
ID: 37018021
I am using Internet Explorer 9 and 8.

Zooming is affecting both broswers,  the code - this is for the background image:

#contentcurves {
background:#FDF9E1;
width:780px;
margin:15px auto 1px auto;
padding: 0px 0px 50px 0px;
border: 1px solid;
border-color: #A98A47;
min-height: 485px;
background-image:url(media/tc-curves-big.gif);
background-position: bottom right;
background-repeat: no-repeat;

I then insert an image for each web page using the following code

<!-- third column -->
<div id="column3">
<br><br><br><br><br><br><br>
<p><img src="media/12.gif" alt="Map" width="122" height="123" align="left"></p>
</div>

I have also attached one of the pages and the static background image.  As you can see I am trying to replace the background circle from the web pages.  So ideally if someone zooms out the image (circle) will stay where the background circle is
image.gif
WebPage.pdf---Adobe-Acrobat-Pro.pdf
0
 
LVL 17

Accepted Solution

by:
GreatGerm earned 2000 total points
ID: 37156813
There really isn't a good way to do this with your background image. The best you can hope for is to try to catch the zoom event with javascript and calculate the positioning of the front image, but this is not likely to be pixel perfect on all (or even most) browsers and is not detected if the page is loaded while already zoomed in.

Your best bet is to create the viewable image on the fly, either by splitting it up into different tags or building it server side based on screen information and delivering it to the client side (depending on language used, this might require ajax).
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:SteptoeTeam
ID: 37158094
Hi

I used a static background (without the circle) for each of the pages and inserted a seperate circle graphic for each of the pages.  This allowed me to zoom in and out without it moving, since the main background image no longer contained a circle this worked.

Thanks
0
 
LVL 17

Expert Comment

by:GreatGerm
ID: 37160549
I'm glad my suggestion to split the image up worked. If this is working for you, please mark this as answered.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 37343909
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

834 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