Solved

Background image clickable

Posted on 2011-03-15
5
566 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 83

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 83

Accepted Solution

by:
Dave Baldwin earned 500 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

Suggested Solutions

Title # Comments Views Activity
Why isn't my DIV and Form centering? 1 27
geting data from the array list 6 36
Code not executing correctly. 3 43
Format Date 7 27
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

737 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