473,396 Members | 1,891 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,396 software developers and data experts.

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 5390
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
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...
4
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...
7
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...
1
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...
4
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....
3
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...
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...
1
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...
18
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...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...

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.