473,772 Members | 3,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Right margin NS 8 (Maximizing the useable screen width)

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 different style sheets, one for IE
and
on e for NS. The box widths are set to 20%.

I would appreciate suggestions on how to get the 5 boxes to fit the
screen
width in NS (without reducing the widths of the boxes).

The test page URL as well as the CSS are listed below.

Stan
-------------------

The test URL is: http://www.capitalcityrealty.ca/boxes/

NS CSS:

HTML
{

PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
FONT-SIZE: 1em;
PADDING-BOTTOM: 0px;
PADDING-TOP: 0px;
FONT-FAMILY: Verdana, Arial, sans-serif
}
BODY
{
PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
FONT-SIZE: 1em;
PADDING-BOTTOM: 0px;
PADDING-TOP: 0px;
FONT-FAMILY: Verdana, Arial, sans-serif
}
.clearall
{

CLEAR: both
}
.sectionhead
{

BORDER-RIGHT: gray thin solid;
border-style: ridge;
MARGIN-TOP: 4px;
FONT-SIZE: 10pt;
BACKGROUND: #ebebeb;
FLOAT: left;
MARGIN-LEFT: 0px;
OVERFLOW: auto;
BORDER-LEFT: gray thin solid;
WIDTH: 20%;
MARGIN-RIGHT: 0px;
BORDER-BOTTOM: gray thin solid;
HEIGHT: 14%;
TEXT-ALIGN: left
}

..sectionhead A {
FONT-WEIGHT: normal;
FONT-SIZE: 10pt;
MARGIN-LEFT: 2px;
COLOR: black;
TEXT-DECORATION: none
}

IE CSS:

html, body{
margin 0px;
padding: 0px;
overflow-y:hidden;

..clearall{
clear: both;
}
..sectionhead{
text-align: left;
background: #EBEBEB;
width: 20%;
height: 14%;
border-style:ridge;
border-width:thin;
border-color:white;
float: left;
margin-left:0px;
margin-right:0px;
margin-top:-16px;
overflow: auto
}
..sectionhead a{
color: black;

font-weight: normal;
margin-left:2px;
text-decoration:none ;
}
..sectionhead
color: blue;

Dec 20 '05 #1
3 2176
st**@firstport. com wrote:
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 different style
sheets, one for IE and on e for NS.
And what of the other 20% of your visitors?
I would appreciate suggestions on how to get the 5 boxes to fit the
screen width in NS (without reducing the widths of the boxes).

The test URL is: http://www.capitalcityrealty.ca/boxes/

<snip code>

In Firefox, all I see is an empty purple page.

Oooh. http://www.capitalcityrealty.ca/boxes/sniffer.js
445 lines of ancient code looking for ancient browser versions and
ancient operating systems. I don't see any mention of Mac or Linux, or
even modern Windows versions. And none of it will work for the 10% who
have JavaScript disabled, unavailable, or stripped by a corporate
firewall.

My advice? Drop that immediately.

You are missing a closing brace on: html, body{ ...
along with some other errors.
<http://jigsaw.w3.org/css-validator/validator?profi le=css2&warning =2&uri=http%3A//www.capitalcity realty.ca/boxes/>

and numerous HTML errors:
<http://validator.w3.or g/check?verbose=1 &uri=http%3A//www.capitalcity realty.ca/boxes/>

New documents should be HTML 4.01 Strict, not Transitional.
<http://www.w3.org/QA/2002/04/valid-dtd-list.html>

Fix all the errors, and report back.

Looks like your main site is also under construction. You should
consider dropping the frames as well. Google for "frames are evil".

[Hint: purple is my default background color. You didn't assign one.]

--
-bts
-Warning: I brake for lawn deer
Dec 20 '05 #2
st**@firstport. com wrote:
I have code that produces 5 boxes across the screen width.
You also seem to have a newsreader that does some /really/ odd things with
word wrapping, it made your post rather difficult to read. Could you get
that fixed please?
So far I have only tested it in IE 6 and NS 8.
Netscape 8 is based on a slightly older version of Firefox. I suggest
developing in the latest version (and then working out bugs that show up in
the older version).
It works in IE, but in NS I am not able to fit in the 5th box.
You have specified that the content width of each box should be 20% of the
space available, then you have added a border. 5x20% + borders is greater
then 100% and so the boxes won't fit.

You would see this in Internet Explorer, but your choice of Doctype (an
attempt at HTML 4.01 Transitional which doesn't actually match the spec)
triggers quirks mode, so it goes in to Quirks mode and reproduces a bug
seen in IE 5.5 and earlier (i.e. putting borders and padding inside the
width).

You don't actually conform to HTML 4.01 Transitional anyway.

As this looks like a new page, I suggest you forget about transitional and
go directly to strict. Use this Doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

.... which will trigger Standards mode and eliminate that bug in IE. You
should also make sure that your markup conforms to the standard:

http://validator.w3.org/check?verbos...alty.ca/boxes/
I am using two different style sheets, one for IE and on e for NS.
This is not a good idea. For a start - there are more browsers out there
then Internet Explorer and Netscape. Generally I find that one style sheet
for all browsers does the job, possibly with a second stylesheet for IE
that overrides or adds to certain things in the first to work around bugs
in Microsoft's browser.

Maintaining two completely separate stylesheets is more work then is
needed :)
FONT-SIZE: 10pt;


Most systems are not configured to correctly translate points into pixels,
also users of Internet Explorer have to jump through a great many hoops in
order to resize the text if you've set it to something they can't read. For
use on screen, pt units are best avoided altogether.

Font sizes are generally best set using percentages (with the body text
being 100% of the user's default).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 20 '05 #3
st**@firstport. com wrote:
[...] I am using two different style sheets, one for IE
and
on e for NS.
Why?
I would appreciate suggestions on how to get the 5 boxes to fit the
screen
width in NS (without reducing the widths of the boxes).

That is what you must do.
IE includes the border width when it calculates the width for the block:
block_width = (20%w - 2*border_width) + 2*border_width.
NS and others add the border width
block_width = (20%w) + 2*border_width.
If you remove the side borders, the boxes fit. Or set the width to less
than 20%, say 19%.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Dec 20 '05 #4

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

Similar topics

22
11096
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even in Opera6))
2
5706
by: sylvian stone | last post by:
Hi, I'm trying to do something that has always been easy with tables - namely use a three column layout, and above the main layout, show three images - one on the absolute left, one on the absolute right, and one in the middle. The one in the middle needs to be centered, as various browsers display slightly differently. However, using the CSS and code below, either the first image is not shown (IE) or the right image is shown below...
7
3243
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my rough layout:
12
4606
by: Paul Mars | last post by:
How can I get the useable dimensions or coordinates of the working area of a form? All that I can find return the monitor screen area, but I need the usable area inside the open form. Not incl. menu, toolbar, status bar. Dim x As Integer = MdiParent.Height Me.SetDesktopBounds(0, 0, 0, 0)
0
2052
by: jonipony | last post by:
HELP: Float Left box is drifting to the right in ie! -------------------------- I need som HELP with my CSS coding! On the following web page my design falls apart at screen size 800 x 600 (looks fine at larger screen sizes) when the left menu box that should float left is drifting to the right in Internet Explorer 6.0 (it doesn't drift to the right in Netscape 7.1).
1
1512
by: mac | last post by:
Hi everyone I need your help just want to know why my webforms doest maximize i paste the script on the onload event <head runat="server"> <title>Untitled Page</title> </head>
1
2688
by: rsteph | last post by:
I've got a page with a menu div that is 1066px wide by 150px high. And then I have some images that are 150px by 150px for the menu items. I put the images in a table that is set to 150x150px with a 1px border around the table, and around each cell in the table. For some reason though, a space is appearing inside the table, below the images. I've made the menu div background color red, so that it is obvious what's happened. I've also resized...
5
2716
by: Timeri | last post by:
This is a bit confusing until you actually see what I'm talking about but the main content of my page is not growing with the right column. I want the main content (left/larger column) to take into account the right deck (right column) so that both end at the same place. *********************************************************** Here's the URL... http://www.siteiq.net/TEST/index-new.html ...
3
5522
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me. my coding are as below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>...
0
9620
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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
10261
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...
0
8934
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
7460
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
5354
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
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
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.