473,606 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Absolute Positioning and Browser Resizing

Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.

Thanks,
Bryan
Jul 20 '05 #1
8 5398
Els
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.


Didn't the answers you got yesterday in c.i.w.a.html work
for you?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
Els
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.


Didn't the answers you got yesterday in c.i.w.a.html work
for you?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #3
DU
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.

Thanks,
Bryan


You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to get
people upset.

DU
Jul 20 '05 #4
DU
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.

Thanks,
Bryan


You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to get
people upset.

DU
Jul 20 '05 #5
DU wrote:
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.

Thanks,
Bryan

You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to get
people upset.

DU


I don't read the other group, so wouldn't have seen the answers, and wouldn't
have learnt from them. I'm glad the question was posted here, and it seems most
relevant in this group, not a generic html group.

--
Ben Thomas

Apparently less than 10% of accidents are caused by drivers exceeding the speed
limit.
Jul 20 '05 #6
DU wrote:
Bryan R. Meyer wrote:
Hello Everyone,

I am in the process of redesigning my web page and I ran into a
problem while using CSS. I have laid out my web page with auto
margins so that the content is centered. I assume that this will
enable the content to be centered in any resolution which the viewer
may be using. I then tried to position some navigation images on my
web page (using absolute positioning). When the browser is resized,
the images stay in the same place (as they should by the
implementation of absolute positioning).

My question is how do I position the images such that if the browser
window is resized then the images will change position so that they
appear where they should. My test page is at:
http://www.bryanrmeyer.net/newpage. If you notice where my navigation
images are (Archives, Projects, etc) then try to resize the browser,
you will see the effect. The header graphic is adjusted but the
images do not move.

Would I be better off using percentage units rather than pixels to
position the elements? Or do I put all of the images in one DIV class
and then position that with respect to the rest of the page?

Any help would be appreciated.

Thanks,
Bryan

You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to get
people upset.

DU


I don't read the other group, so wouldn't have seen the answers, and wouldn't
have learnt from them. I'm glad the question was posted here, and it seems most
relevant in this group, not a generic html group.

--
Ben Thomas

Apparently less than 10% of accidents are caused by drivers exceeding the speed
limit.
Jul 20 '05 #7
Els
BenOne© wrote:
DU wrote:
You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to
get people upset.


I don't read the other group, so wouldn't have seen the answers, and
wouldn't have learnt from them. I'm glad the question was posted here,
and it seems most relevant in this group, not a generic html group.


That's why the op could have crossposted. Multiposting
breaks up the discussion, and you would read only half of
it. Crossposting lets you benefit from the discussion that's
completely readable in two (or more) newsgroups.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #8
Els
BenOne© wrote:
DU wrote:
You should first get this into your mind: multi-posting defeats the
purpose of answering a post. Fragmenting a discussion is best way to
get people upset.


I don't read the other group, so wouldn't have seen the answers, and
wouldn't have learnt from them. I'm glad the question was posted here,
and it seems most relevant in this group, not a generic html group.


That's why the op could have crossposted. Multiposting
breaks up the discussion, and you would read only half of
it. Crossposting lets you benefit from the discussion that's
completely readable in two (or more) newsgroups.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #9

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

Similar topics

12
2332
by: Tom Szabo | last post by:
Hi, Just wondering if there are any disadvantage in absolute positioning controls on a page? In example instead of putting the text fields into a table to align properly, one would absolute position them. I understand the issue with resize, that is not a problem.
4
10998
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I scroll/resize. Then the image "moves" on the screen but the animation doesn't. The net effect is that their relative positioning changes. I'd like to have it be that they would stay in the same relative position. I want to keep the image as an...
7
6292
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
1799
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with Content Place Holders. The controls placed in a content area with absolute or relative positioning can easily "drift" beyond my Content Place Holder. I'm trying to put a "footer" on every page of the site and this is
4
2101
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, when used sensibly. Let me say straight off that I am *not* talking about trying to produce...
3
2224
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 macro was used to divide the content into equal sentence fragment spans of the 12 characters each...
2
16405
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 to overlap correctly. You can see it on this page: www.creativekaysjewelry.com The images overlap exactly how I wanted and in the right position
1
2530
by: alice | last post by:
Can someone point me to a page that has good info on how the different browsers handle positioning? I'm finding that position:absolute works differently between Safari and IE7. Sort of ironic if you ask me. I can't seem to easily find anything on the web about how to handle this. Is there some sort of hack for IE?
18
2596
by: LayneMitch | last post by:
Hello. After getting great advice on positioning, I've edited my code and it's looking more stable. Now I need a little assistance with background image placement. Please click on this link: www.ibtestsite.info I've colored the background black and added a background image which is the
0
7942
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8433
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8084
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
6761
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5963
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3969
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2443
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
1550
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.