473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

positioning layers

Hi all!!!

Im new to this news, but i think i will post quite a lot :)

My problem is i got 1 big pic divided in 2 smallers 1.1 and 1.2.

big one [_________|______] <- this one is the 1.1
|______] <- this one is the 1.2

the 1.1 is in a centerd div and the 1.2 is in another div relative
positioned, and is over the contents of the page div.central

<div align="center">
<div class="top">
<div>
<img src="1.1" />
</div>
</div>
<span class="adorno"><!-- its over the central div -->
<img src="1.2 />
</span>
<div class="central">
<div clas="main">
<div class="contenido" >
<iframe>
</iframe>
</div>
</div>
</div>
</div>
css code

span.adorno{position: relative; top: 0px; left: 261px; z-index: 1;}
..top {width: 780px; height: 150px;}

At my working resolution (1600x1200)in Firefox it works prefect, but
changing the resolution the span.adorno moves to the sides, depending it
the resolution is bigger or smaller. I got the same effect in IE.

How can i fix it? is there any universal measure for positioning elements
being independent from the browser or the resolution?

Thanks in advance

Take care u all
Cachorro

PD im not an english speaker, so i apologise from my awfull english, and i
hope that u all can understand what i want to do. :)

Apr 25 '06 #1
4 1378
Cachorro wrote:

My problem is i got 1 big pic divided in 2 smallers 1.1 and 1.2.

big one [_________|______] <- this one is the 1.1
|______] <- this one is the 1.2


Please post an URL to your test case. There are too many variables to
give an answer to your question.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Apr 25 '06 #2
Here it is..
http://paranoidworld.host.sk/tst/

I hope it will help
Take care u all

Cachorro
Apr 26 '06 #3
To further the education of mankind, Cachorro <ca******@gmail.com>
vouchsafed:
Here it is..
http://paranoidworld.host.sk/tst/

I hope it will help


This seems to be the problem:

<div id="phpads_6f5d2720" style="position: absolute; width: 470px; height:
73px; z-index: 99; left: 786px; top: 0px; visibility: hidden;">

....which is apparently coming from one of those BS ad sources in your
javascript inclusions.

Change "left: 786px" to "left: 0px" and you remove the horz scrollbar.
What happens when the visibility becomes visible is anybody's guess.
--
Neredbojias
Infinity has its limits.
Apr 26 '06 #4
ok i will try
Thanxxx a lot :)

Take care u all
Cachorro

Apr 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: murali | last post by:
Hello everyone, I used absolute positioning with div tag in my website. The page looks cool as long as someone doesn't try to zoom in by increasing the text size (ctrl++ or thru changing font...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
1
by: Chris McGarry | last post by:
Hello, I'm new to style sheets and have been fighting with browser compatibility for two days. I'm developing a image selection page (similar to Ebay where the visitor can select and enlarge 1-6...
1
by: Jeff Blume | last post by:
i have a dynamic menu that shoots out horizontal submenus when graphics on the left are rolled over. i'm using <div> layers and manipulating their visibility properties to do this. the problem...
17
by: George Hester | last post by:
http://tinyurl.com/5uj6w The lower middle icon the "block" should not drop down when the mouse is over it. How can I stop that? Also the navigation divs both top and bottom should follow the...
6
by: | last post by:
I just installed VS 2005. Was working with 2003 and .Net 1.1. Trying to get the feel for a master page and I'm having some issues. I'm looking for a pretty basic setup. Standard header with an...
4
by: Richard | last post by:
Hi, I like a demo on layers posted at http://www.echoecho.com/csslayers.htm. It displays two text phrases in separate layers visually overlapped, first with one on top and the other beneath,...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
0
by: sknonline | last post by:
Greetings. I am having troubles using absolute positioning in IE6. When I establish the width as 100%, it's not spanning the entire width of the browser. It works in Firefox, Safari, and IE7.......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.