Solved

Background image clickable

Posted on 2011-03-15
5
561 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:Dushan911
  • 3
  • 2
5 Comments
 
LVL 82

Expert Comment

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

Author Comment

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

Assisted Solution

by:Dushan911
Dushan911 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 82

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:Dushan911
ID: 35174652
I found a solution.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to dynamically set the form action using jQuery.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now