473,549 Members | 2,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Viewing problems with Absolute Positioning

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 size in browser settings). When
someone does that, the layers seem to overlap and the layer with a
greater z value pops in front and the other layers are pushed back.

The most obvious solution will be to prevent the user from increasing
the text size. But how to do that ?? any help will be greatly
appreciated.

Thanks,
Murali.
Jul 20 '05 #1
13 3024
Hi,

The joy of pixel widths. Try using "em" units more often.
I dont follow what do you mean by this

You can't (except in broken browsers), and trying is a very bad idea. People
usually increase their font size becuase they can't read the text at the
size it was at before!


But how to get around this problem. Only thing I can think about is
making the text as images so that their size cannot be changed (I know
this idea sucks).
I appreciate the sagacity of the browser designers, but is it not
unfair when someone who wants a better view of the page, zooms in on
the page only to see the page go haywire.

Is there any other better method to keep this dirty thing at bay.

Any Help will greatly be appreciated,
Thanks,
Murali.
Jul 20 '05 #2
murali wrote:
The joy of pixel widths. Try using "em" units more often.
I dont follow what do you mean by this


CSS requires that all lengths include a unit. Many authors use pixels,
becuase that is what they are used to. There are several other options,
including em units - which are relative to the font size.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #3
murali wrote:

But how to get around this problem. Only thing I can think about is
making the text as images so that their size cannot be changed (I know
this idea sucks).


Yes, this idea sucks pretty badly. A much better solution would be to
fix the design so it wasn't dependent on a particular font size. Using
em or % units for absolute positioning, or using relative positioning
instead, could be solutions to your problem. It's hard to be very
specific without a URL.

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #4
On Sun, Jul 13, murali inscribed on the eternal scroll:

[quoting David Dorward , but without attribution!]
The joy of pixel widths. Try using "em" units more often.
I dont follow what do you mean by this


Well, the css.nu FAQs haven't been extensively updated recently, but
they still have plenty of good sense in them[1].

http://css.nu/faq/ciwas-aFAQ.html#QA01 and onwards.
You can't (except in broken browsers), and trying is a very bad idea. People
usually increase their font size becuase they can't read the text at the
size it was at before!


But how to get around this problem.


There isn't a problem - at least, not the one you think you've
identified.
Only thing I can think about is
making the text as images so that their size cannot be changed (I know
this idea sucks).
Please read the posting that you are following-up to, but *for
meaning* this time. "trying is a very bad idea", was what the chap
said, and rightly so too.
I appreciate the sagacity of the browser designers, but is it not
unfair when someone who wants a better view of the page, zooms in on
the page only to see the page go haywire.
So, learn to design flexibly.
Is there any other better method to keep this dirty thing at bay.


You haven't worked out yet what most of the regulars around here
reckon to be the "dirty thing". I'd recommend some quiet reading to
get yourself up to speed with the group.

good luck

[1] I have to admit that a few of the sentences in there were
originally written my me, in fact.
Jul 20 '05 #5
On Sun, Jul 13, kchayka inscribed on the eternal scroll:
Yes, this idea sucks pretty badly. A much better solution would be to
fix the design


....or indeed to un-fix the design (depending on which meaning of the
word 'fix' you had in mind) - SCNR.

Jul 20 '05 #6
Alan J. Flavell wrote:
On Sun, Jul 13, kchayka inscribed on the eternal scroll:
Yes, this idea sucks pretty badly. A much better solution would be to
fix the design


...or indeed to un-fix the design (depending on which meaning of the
word 'fix' you had in mind) - SCNR.


LOL, yes perhaps a poor word choice. Just to avoid any possible confusion:

fix: to repair, correct, mend, revise, etc., etc., etc.

:)

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #7
In article <6a************ **************@ posting.google. com>, one of infinite monkeys
at the keyboard of mu***********@y ahoo.com (murali) wrote:
I appreciate the sagacity of the browser designers, but is it not
unfair when someone who wants a better view of the page, zooms in on
the page only to see the page go haywire.


If the page goes haywire with different settings, your design is
*badly* broken.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #8
"Daniel R. Tobias" <da*@tobias.nam e> wrote in message news:<pM******* *******@news2.n ews.adelphia.ne t>...

To me, though, the most obvious solution would be to rethink your
original idea of trying to absolutely position everything, and make your
design more flexible instead of trying to figure out ways to make it
even *less* flexible.


Thanks for the suggestions.

The URL is http://www.eng.uab.edu/me/etlab/cluster.htm

I wanted to place the headings as images, so I did so by placing them
in seperate layers. try zooming in on the page and see how it affects
the page.

The gurus in this thread asked me to rethink about design, but can
anyone lemme know what kind of design factors you take into
consideration before you design a page with layers.
Jul 20 '05 #9
murali wrote:

The URL is http://www.eng.uab.edu/me/etlab/cluster.htm

I wanted to place the headings as images, so I did so by placing them
in seperate layers. try zooming in on the page and see how it affects
the page.
I don't even need to zoom text to see overlapping elements. It is not
pretty. There are other problems with the page as well, like no alt
text for images and some serious horizontal scrolling.
The gurus in this thread asked me to rethink about design, but can
anyone lemme know what kind of design factors you take into
consideration before you design a page with layers.


It really is a pretty simple layout, or at least should be. "Layers"
shouldn't be needed at all. The easiest thing would be to get rid of
all the positioning. Just arrange the sections in the order they should
display. You could keep the <div> tags, but they really serve no useful
purpose. The images really represent headings, thus they should be
contained in <hx> markup, presumably h2 (assuming there is an h1 on the
page). Add alt text to those images, too, so those with image loading
off can see some text.

For example, current code:
<div id="Layer10" style="position :absolute; left:1px; top:2069px;
width:110px; height:26px; z-index:19">
<a name =" resources"><img src="images/cluster-resources.jpg"
width="91" height="25"></a></div>
<div id="Layer11" style="position :absolute; left:19px; top:2106px;
width:1181px; height:199px; z-index:20">
<div align="justify" ><font size="2" face="Verdana, Arial, Helvetica,
sans-serif">The cluster consists of one compile node...

Change to:
<h2><a name="resources "><img src="images/cluster-resources.jpg"
width="91" height="25" alt="Resources" ></a></h2>
<p align="justify" ><font size="2" face="Verdana, Arial, Helvetica,
sans-serif">The cluster consists of one compile node...

The next thing would be to get rid of all the <font> tags and start
building an external stylesheet.

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #10

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

Similar topics

7
6281
by: Griff Miller | last post by:
Please see http://home.houston.rr.com/gmiller15/css/vertprob.html . In mozilla 1.6/1.7 it looks the way I want it, with a thin separation between the two boxes. In IE6, the two boxes touch, which is not what I want. Is there a way to get IE6 to do it the mozilla way? Thanks! Griff
1
1878
by: Lars A. Gundersen | last post by:
So I'm starting out with CSS positioning, and it seems to work fine - until I check in IE6/Win, of course. I'm trying to use absolute positioning to place a box with my site's main contens area in middle of my pages, so that there are spaces for other things on all four sides of the area. CSS declaration: body { position: absolute;...
1
1437
by: Gary | last post by:
Is it possible to have a "floating" area designated to show an enlarged image of a thumbnail? Right now I'm using a script to enlarge the image, where it's at, onmouseover, but when it enlarges, it re-draws the rest of the page below it. Some times it enlarges in the area below the current image which makes the mouse cursor no longer over...
4
2096
by: Alan Silver | last post by:
Hello, Having been a light reader of this ng for a few months now (after several years absence), I have noticed that absolute positioning seems to be considered a Very Bad Thing around here. Generally, when someone posts a question about a design that uses it, they are told not to. Now, in my ignorance, I don't see what's wrong with it,...
3
2220
by: horusprim | last post by:
Is there a CSS absolute positioning rendering bug in FF1.02 and IE 6? I have been experimenting with precision absolute positioning in CSS. The following test content was used in the experiment: "This sentence is to be about nine words long. I hope this test suite works. Mary had a little lamb and its fleece was white as snow." Next a...
13
1513
by: Ikke | last post by:
Hi everybody, I've downloaded a design from www.oswd.org and have started rewriting the css and html to end up with a new design for my site. So far so good, but there are a few problems I don't seem to find a solution for. You can see the new design here: http://tesinfo.atspace.com/test.html (it's based on Blew Wave,...
6
2901
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img src='photos/thumbs/ bigsmile.jpg'></a><a class='del' href='?p=gallery&del=2'>x</a></div> where 'thumb' is my container, and 'del' should be aligned...
3
1376
Mobius Evalon
by: Mobius Evalon | last post by:
I've been staring at this problem and stabbing in the dark at it for a few hours now, and I've finally broken down to the point where I realize I need some help. I'm absolutely positioning most of the elements on my site, found here: http://mobiusevalon.tibbius.com/tibbius/ I'm having problems with the post information displayed at the top...
20
2802
by: mehstg1319 | last post by:
Hi there Not sure if anyone can help me, I am working on a site for my university, and am having a bit of trouble with css positioning. I am very new to css and do not know very much about it. Here is the link: http://homepages.feis.herts.ac.uk/~bp6ar/bus_intel/matrix/matrix.html Basically, the problem is that the ticks on the grid...
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6041
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.