?
Solved

Background image clickable

Posted on 2011-03-15
5
Medium Priority
?
570 Views
Last Modified: 2012-05-11
Hi Experts,
I had look at following example.
http://www.position-relative.com/tutorials/tute1_css_bg_image.php

I'm trying to make clickable on following site's left and right banners which are under background image.
http://ddcdev.networkvideo.com.au/

But when I zoom or when I view under higher resolution it's not working properly. It's more into right and left , it's going out of the image.
Is there anyway that I can try to put positions from center , instead of right/left.

BR Dushan.
#LEFT{
    position: absolute;
    width: 130px;    /* width of the logo */
    height: 450px;   /* height of the logo */
    top: 0; left: 0; /* top-left corner of logo */
    border: 0;
    float: left;
}

#RIGHT {
    position: absolute;
    width: 130px;    /* width of the logo */
    height: 450px;   /* height of the logo */
    top: 0; right: 0; /* top-left corner of logo */
    border: 0;
    float: right;
}

Open in new window

0
Comment
Question by:Dushan De Silva
[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
  • 3
  • 2
5 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 35143759
Can't get past the login.
0
 
LVL 17

Author Comment

by:Dushan De Silva
ID: 35143768
ops, I'm sorry please try
http://www.donedirtcheapdvd.com.au/
0
 
LVL 17

Assisted Solution

by:Dushan De Silva
Dushan De Silva earned 0 total points
ID: 35143845
I think , I did it.:)
#CLICKABLE {
    position: absolute;
    width: 100%;    /* width of the logo */
    height: 100%;   /* height of the logo */
    top: 0; right: 0; /* top-left corner of logo */
    border: 0;
    float: right;
}

Open in new window

0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 35143857
You can't use "position: absolute;" and "float" together.   'box1' doesn't appear to be defined in your CSS so it will just be a div that stretches from the left border of the window to the right.  The way it should be working is that you will have 'LEFT' and 'RIGHT' boxes 130x450 tied to the edges of the screen regardless of the screen size.

And by the way, it apears that you have designed for a screen width of about 1600px which means that I can't read half of the text in the background on either side.  According to this page http://marketshare.hitslink.com/report.aspx?qprid=17 , only about 5% to 10% of the users have screens that big.
0
 
LVL 17

Author Closing Comment

by:Dushan De Silva
ID: 35174652
I found a solution.
0

Featured Post

Industry Leaders: 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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

764 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