473,509 Members | 2,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen Widths Problem

Hello Everyone.

I gave up on frames, and now I'm trying to achieve the same navigation
with CSS - which is probably not the best idea. I've hit a strange
snag.

I've positioned a top banner DIV at 2% left and width of 96% absolute.

Underneath, I have three DIV columns, the first at 2% left, width 27%,
the second at 31% left, width 38%, and the third at 71% left, width
27%.

Although the percentages of the bottom three DIVs add up to 98%, which
should correspond with the top banner DIV, there are several pixels of
difference in IE6 and Opera 7.10, but not in Mozilla Firebird 0.61,
Beonex Communicator 0.8 or DocZilla 1.0, the last three using the
Gecko renedering engine so I understand, as in Netscape. I also
checked with Amaya 8.1, but I guess the positioning is not fully
supported yet, and each DIV came out one above the other.

I guess this must be a known problem. Is there a known solution?

Thanks.

Alan Clark
University of Herts. UK.

--
Best regards,
Alan mailto:al**@eggless.com
Jul 20 '05 #1
1 1838
Fox


Alan Clark wrote:

Hello Everyone.

I gave up on frames, and now I'm trying to achieve the same navigation
with CSS - which is probably not the best idea. I've hit a strange
snag.

I've positioned a top banner DIV at 2% left and width of 96% absolute.

Underneath, I have three DIV columns, the first at 2% left, width 27%,
the second at 31% left, width 38%, and the third at 71% left, width
27%.

Although the percentages of the bottom three DIVs add up to 98%, which
should correspond with the top banner DIV, there are several pixels of
difference in IE6 and Opera 7.10, but not in Mozilla Firebird 0.61,
Beonex Communicator 0.8 or DocZilla 1.0, the last three using the
Gecko renedering engine so I understand, as in Netscape. I also
checked with Amaya 8.1, but I guess the positioning is not fully
supported yet, and each DIV came out one above the other.

I guess this must be a known problem. Is there a known solution?

Thanks.

Alan Clark
University of Herts. UK.

--
Best regards,
Alan mailto:al**@eggless.com


In order for IE to line things up properly, you need to eliminate the
document padding and margins:

<style...
body {
padding: 0;
margin: 0;
...
}

[I know the MSDN docs say the default values for these properties are 0,
but I don't believe it...]
In IE, these properties influence the position of all other objects on
the page *even if they are declared position: absolute* (I'll bet that
the "overrun" was about 8 pixels).

Doing this *should* have no adverse affect on the gecko browsers. I have
absolutely no experience with Amaya, so I can't help you there.

Fox
*************
Jul 20 '05 #2

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

Similar topics

23
4848
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
48
8607
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
3
10702
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table...
4
1957
by: RelaxoRy | last post by:
I have 2 screen sizes I want to accomodate for. screen.width <= 800 and > 800. This is because If it's one or the other, I want a different set of menu graphics, and to set variables for my...
3
2158
by: stan | last post by:
I have code that produces 5 boxes across the screen width. So far I have only tested it in IE 6 and NS 8. It works in IE, but in NS I am not able to fit in the 5th box. I am using two...
35
4120
by: Friendly_Lola | last post by:
What Screen Resolution do You use? 800 X 600 1024 X 768 1280 X 1024 Wow! 1600 X 1200 (i can't imagine this) I use 1024 X 768. For what resolution you optimize your web pages?
3
6645
by: rahulnag22 | last post by:
Hi, I have developed a GUI using tkinter (grid geometory manager). The structure is a top frame containing multiple subframes. Each subframe has a combination of widgets like(Entry, label,...
1
3485
by: jfalberg | last post by:
I'm trying to modify some web pages so that the table column widths can vary depending on the user's screen width, but can't seem to find how to do it. I know in Javascript I can use Screen.width...
3
6762
by: Safalra (Stephen Morley) | last post by:
(Note: I'm not trying to do anything stupid based on the user's screen size - I'm just curious.) At work today I was looking at the visitor statistics for a client website, and noticed that...
3
1465
by: Peter Oliphant | last post by:
I'm programming using MS VS VC++ 2008 Express (Beta 2) in /Cli pure mode. I've found the Screen class. With it I can very easily get the count and all the data on the various Screens attached to...
1
7073
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
7506
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...
0
5656
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,...
1
5062
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...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
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...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
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...

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.