473,761 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Problem in the FF Opera Safari world

BMc

I just want to take a moment to say thank you to so many of you who
posted a response to my request for help about the problem with THE GAP
(see below?)!

Your suggestions were not only a solution to the problem, but they were
given in a way that encouraged further learning about the subject and
gave me more information that helped me move forward today.

I have actually gotten the page to work with the same style sheet for
ff, opera, safari and IE without doing a separate sheet for IE. I am
still holding my breath that it will work in IE6, but that is work for
another day. I didn't have the energy to post the update yet, maybe
tomorrow.

Thanks for the kind nudging and expert advice. This community is a
blessing.

PEACE

betsy



So, as per Beauregard's suggestion, I have delved into the world of
percentages and more fluid design for my next project. I am going along
okay so far and have already determined that I will be doing a
conditional comment for a separate Stylesheet for IE but I am having a
problem now in Firefox, Safari, and Opera.

If you would like to see my problem, please visit

http://myweb.fltg.net/users/bethmcgee/index.html

As you can see, it looks lovely in IE (except for the annoying little
gap at the very bottom of the wrapper of the page which I will figure
out when I do a separate stylesheet I hope), but in any of the other
browsers there is this really annoying gap above the menu. The code is
so simple so far, not really much padding or margin to anything and I
have tried tweaking just about everyone and changing the floats of all
elements that do float, adding floats to those I didn't initially float.
I have been perplexed for days.

I don't normally post until I am down to my last hair...so if anyone has
a moment and wants a challenge or even just wants to rant about how bad
my my code looks, I'd be deeply appreciative.

I hope you are all enjoying the onset of Spring...

Peace
Jun 27 '08 #1
13 1548
In article
<_c************ *************** ***@posted.fing erlakestechnolo gygroup>,
BMc <be******@yahoo .comwrote:
If you would like to see my problem, please visit

http://myweb.fltg.net/users/bethmcgee/index.html

As you can see, it looks lovely in IE (except for the annoying little
gap at the very bottom of the wrapper of the page which I will figure
out when I do a separate stylesheet I hope), but in any of the other
browsers there is this really annoying gap above the menu.
Add margin:0; to your .menulist ul {...

You should remove height on your #header and other heights...

--
dorayme
Jun 27 '08 #2
BMc

Okay, so not a problem in IE7 or Safari or Firefox any longer...

But I have some questions about the lower resolutions. For the most
part, I can get the elements that are containers to be flexible and
expand and contract with resolution. But what about text, specifically
list text? Also, my heading text is not as it should be at a lower
resolution.

Is there a specific way to code for text to expand and contract as a
whole with the document? It would seem logical to me that if you set
all of your font sizes like headers and paragraph text, etc...that it
would end up being the percentage of the whole document. Is it because
each containing div is actually appearing at a percentage of it's
containing div and not the percentage of the document that using
percentage on font size isn't going to work effectively?

Would it work better to set the font size inside each element that I
need it to be different in such as the list and the header text? Would
it then, if coded inside the element itself, override the primary
settings that I set at the beginning of the CSS document?

And, is it a percentage of the base property of font size (is it 16pt?)
or a percentage of the size of the containing div?

Am I making any sense or am I babbling?? After a while, I can't even
tell.

Again, the site is at:

http://myweb.fltg.net/users/bethmcgee/index.html
Thanks heaps in advance.

betsy


dorayme wrote:
In article
<_c************ *************** ***@posted.fing erlakestechnolo gygroup>,
BMc <be******@yahoo .comwrote:
>If you would like to see my problem, please visit

http://myweb.fltg.net/users/bethmcgee/index.html

As you can see, it looks lovely in IE (except for the annoying little
gap at the very bottom of the wrapper of the page which I will figure
out when I do a separate stylesheet I hope), but in any of the other
browsers there is this really annoying gap above the menu.

Add margin:0; to your .menulist ul {...

You should remove height on your #header and other heights...
Jun 27 '08 #3

BMc wrote:

Please don't top post.
http://web.presby.edu/~nnqadmin/nnq/nquote.html
my heading text is not as it should be at a lower
resolution.
FYI resolution is pretty meaningless. Browser viewport size is what
matters. I assume that's what you meant.
Is there a specific way to code for text to expand and contract as a
whole with the document?
Not sure what you mean, but left alone, text will flow normally. It
takes care of itself.
It would seem logical to me that if you set
all of your font sizes like headers and paragraph text, etc.
Over specifying font sizes for every little thing is one way to get
yourself into a bind, plus it adds a lot of unnecessary bloat to the
stylesheet.

Leave body at font-size:100% and everything will inherit that by
default, plus as a bonus it prevents weird things happening in IE. Then
adjust heading (hx) sizes up from that, as you've already done. Set
legalese, like in the page footer, to not less than 80%. There may be
some sections or portions of text that should have something slightly
larger or smaller than 100%, but try to set it on a container, not
individual elements within it if at all possible.
Is it because
each containing div is actually appearing at a percentage of it's
containing div and not the percentage of the document that using
percentage on font size isn't going to work effectively?
One has nothing to do with the other. You may be using % units for both,
but what that references is different for text vs. a container block.
Both, however, refer to % of their respective parent elements.
if coded inside the element itself, override the primary
settings that I set at the beginning of the CSS document?
I hope you aren't referring to inline styles. They are a PITA to
maintain and should be avoided. Just remember that styles are applied
top-down, but don't forget about specificity.
And, is it a percentage of the base property of font size (is it 16pt?)
or a percentage of the size of the containing div?
The parent of the body font-size the visitor's default text size,
whatever that may be. In my case, it's 20px.
http://myweb.fltg.net/users/bethmcgee/index.html
It's not a bad try, but it doesn't adapt to smaller window sizes as well
as it should. Don't set explicit heights on text blocks unless you fully
understand the repercussions, and not at all on #header or .menulist.
What's happening at enlarged text sizes and/or smaller windows is the
content at the top ends up longer than the height you set and spills out
of the containers. By not setting height they will stretch as needed for
the content. Use min-height if need be, and padding and/or line-heights
to get the amount of spacing you want in those blocks. You may also have
to adjust your background images to repeat better.

The right column has issues because you're mixing % widths for the text,
but using a fixed px width background image. They don't jive, so for me
some portion of that text is yellow on yellow, and unreadable. The fixed
height:75em just makes a bunch of vertical scrolling with nothing to
show for it. It needs to be constructed/styled differently to get the
effect you want. I think, though, using a % width for the column will
look "off" with the butterfly image. You might want to use a fixed width
for that column instead, or rethink how you're using images over there
so it will look better at varying window sizes.

--
Berg
Jun 27 '08 #4
On 2008-05-21, BMc <be******@yahoo .comwrote:
>
Okay, so not a problem in IE7 or Safari or Firefox any longer...

But I have some questions about the lower resolutions. For the most
part, I can get the elements that are containers to be flexible and
expand and contract with resolution. But what about text, specifically
list text? Also, my heading text is not as it should be at a lower
resolution.

Is there a specific way to code for text to expand and contract as a
whole with the document? It would seem logical to me that if you set
all of your font sizes like headers and paragraph text, etc...that it
would end up being the percentage of the whole document. Is it because
each containing div is actually appearing at a percentage of it's
containing div and not the percentage of the document that using
percentage on font size isn't going to work effectively?
[...]

You can make a box's width relative to the font-size of the text inside
it by using ems.

That way if the user makes the fonts bigger or smaller the boxes grow or
shrink with them.

I think you're asking: is the inverse possible? If the user makes the
boxes bigger or smaller (by narrowing or widening the viewport) can the
fonts be made to grow or shrink?

It would be a logical thing to be able to do, but there's no way to do
it without JavaScript.
Jun 27 '08 #5
In article <sl************ *********@bowse r.marioworld>,
Ben C <sp******@spam. eggswrote:
On 2008-05-21, BMc <be******@yahoo .comwrote:

Okay, so not a problem in IE7 or Safari or Firefox any longer...

But I have some questions about the lower resolutions. For the most
part, I can get the elements that are containers to be flexible and
expand and contract with resolution. But what about text, specifically
list text? Also, my heading text is not as it should be at a lower
resolution.

Is there a specific way to code for text to expand and contract as a
whole with the document? It would seem logical to me that if you set
all of your font sizes like headers and paragraph text, etc...that it
would end up being the percentage of the whole document. Is it because
each containing div is actually appearing at a percentage of it's
containing div and not the percentage of the document that using
percentage on font size isn't going to work effectively?
[...]

You can make a box's width relative to the font-size of the text inside
it by using ems.

That way if the user makes the fonts bigger or smaller the boxes grow or
shrink with them.

I think you're asking: is the inverse possible? If the user makes the
boxes bigger or smaller (by narrowing or widening the viewport) can the
fonts be made to grow or shrink?

It would be a logical thing to be able to do, but there's no way to do
it without JavaScript.
Or without using images of text...

--
dorayme
Jun 27 '08 #6
BMc
dorayme wrote:
In article <sl************ *********@bowse r.marioworld>,
Ben C <sp******@spam. eggswrote:
>On 2008-05-21, BMc <be******@yahoo .comwrote:
>>Okay, so not a problem in IE7 or Safari or Firefox any longer...

But I have some questions about the lower resolutions. For the most
part, I can get the elements that are containers to be flexible and
expand and contract with resolution. But what about text, specifically
list text? Also, my heading text is not as it should be at a lower
resolution.

Is there a specific way to code for text to expand and contract as a
whole with the document? It would seem logical to me that if you set
all of your font sizes like headers and paragraph text, etc...that it
would end up being the percentage of the whole document. Is it because
each containing div is actually appearing at a percentage of it's
containing div and not the percentage of the document that using
percentage on font size isn't going to work effectively?
[...]

You can make a box's width relative to the font-size of the text inside
it by using ems.

That way if the user makes the fonts bigger or smaller the boxes grow or
shrink with them.

I think you're asking: is the inverse possible? If the user makes the
boxes bigger or smaller (by narrowing or widening the viewport) can the
fonts be made to grow or shrink?

It would be a logical thing to be able to do, but there's no way to do
it without JavaScript.

Or without using images of text...


OKAY!!! You have all been such a great help! I went back to the
drawing board and wrote everything up from scratch like I actually
understood it. And now, I think I do. Rather than just coding for all
of the quirks in all the browsers I went for the simplest approach for
each element and am down to everything looking really great even in
800x600 and on IE6 (my biggest hair pullers).

I have tested it in IE6, IE7, Firefox, Opera, and Safari and at three
different screen resolutions (or whatever you choose to call it). And it
validates with the exception of two small rules.

It can be seen here:
http://myweb.fltg.net/users/bethmcgee/index.html

I have a mysterious issue with a couple of images though that I can't
figure out. I have 6 pages, each with a wrapper that is specific to it.
These hold different images that run down the side as the background
image as was suggested by someone who responded and it was a great
suggestion. Some of these images show up and some don't. They have
different heights but are set to repeat-y except for one that should not
repeat because a flash video will be on that page and it only requires
the height of one side image.

My question: why aren't these images showing up? By the way...THIS ONLY
HAPPENS IN FIREFOX, SAFARI and OPERA. In both IEs they all work so if
you have IE you can see what they are supposed to look like. On the
three previously mentioned browsers only the one on the index page
(home) and the one on the video page do (although it isn't extended its
full length because the video isn't there.)

Any suggestions? I have done a lot of work on the graphics as well to
make them repeat more seamlessly and I am really happy with the simple
layout and the way it has come together. It even zooms in and out
pretty well.

Thanks again for your encouragement and help. I have learned a lot
working on this site.

Betsy
Jun 27 '08 #7
On 2008-05-25, BMc <be******@yahoo .comwrote:
[...]
It can be seen here:
http://myweb.fltg.net/users/bethmcgee/index.html

I have a mysterious issue with a couple of images though that I can't
figure out. I have 6 pages, each with a wrapper that is specific to it.
These hold different images that run down the side as the background
image as was suggested by someone who responded and it was a great
suggestion. Some of these images show up and some don't. They have
different heights but are set to repeat-y except for one that should not
repeat because a flash video will be on that page and it only requires
the height of one side image.

My question: why aren't these images showing up? By the way...THIS ONLY
HAPPENS IN FIREFOX, SAFARI and OPERA. In both IEs they all work so if
you have IE you can see what they are supposed to look like. On the
three previously mentioned browsers only the one on the index page
(home) and the one on the video page do (although it isn't extended its
full length because the video isn't there.)

Any suggestions? I have done a lot of work on the graphics as well to
make them repeat more seamlessly and I am really happy with the simple
layout and the way it has come together. It even zooms in and out
pretty well.
The problem is the height of #wrapabout (etc.)

On the "Home" page, there's a div called #wraphome which has the
background image on it. Inside it there are various things ending with
div#foottext, which has clear: both.

Because it has clear: both it clears the floats in #wraphome (i.e. goes
underneath them) and #wraphome ends up with a height of several hundred
pixels, therefore you can see its background image.

But on the "About" page, #wrapabout, which is doing a similar job, ends
up with a height of only 0px because here #foottext is not nested inside
#wrapabout, but instead is its sibling.

I expect it's the same sort of thing on the other pages that aren't
working.

The height of a container depends on its contents, but not usually on
its floated contents. They're supposed to spill out of the bottom. This
means that if all a container contains is floats, its height is 0,
unless you put something in it that clears the floats (or use various
other tricks). Except in IE which gets it wrong under certain weird
circumstances.

More explanation here: http://netweaver.com.au/floatHouse
Jun 27 '08 #8
BMc
Ben C wrote:
On 2008-05-25, BMc <be******@yahoo .comwrote:
[...]
>It can be seen here:
http://myweb.fltg.net/users/bethmcgee/index.html

I have a mysterious issue with a couple of images though that I can't
figure out. I have 6 pages, each with a wrapper that is specific to it.
These hold different images that run down the side as the background
image as was suggested by someone who responded and it was a great
suggestion. Some of these images show up and some don't. They have
different heights but are set to repeat-y except for one that should not
repeat because a flash video will be on that page and it only requires
the height of one side image.

My question: why aren't these images showing up? By the way...THIS ONLY
HAPPENS IN FIREFOX, SAFARI and OPERA. In both IEs they all work so if
you have IE you can see what they are supposed to look like. On the
three previously mentioned browsers only the one on the index page
(home) and the one on the video page do (although it isn't extended its
full length because the video isn't there.)

Any suggestions? I have done a lot of work on the graphics as well to
make them repeat more seamlessly and I am really happy with the simple
layout and the way it has come together. It even zooms in and out
pretty well.

The problem is the height of #wrapabout (etc.)

On the "Home" page, there's a div called #wraphome which has the
background image on it. Inside it there are various things ending with
div#foottext, which has clear: both.

Because it has clear: both it clears the floats in #wraphome (i.e. goes
underneath them) and #wraphome ends up with a height of several hundred
pixels, therefore you can see its background image.

But on the "About" page, #wrapabout, which is doing a similar job, ends
up with a height of only 0px because here #foottext is not nested inside
#wrapabout, but instead is its sibling.

I expect it's the same sort of thing on the other pages that aren't
working.

The height of a container depends on its contents, but not usually on
its floated contents. They're supposed to spill out of the bottom. This
means that if all a container contains is floats, its height is 0,
unless you put something in it that clears the floats (or use various
other tricks). Except in IE which gets it wrong under certain weird
circumstances.

More explanation here: http://netweaver.com.au/floatHouse

Thanks so much for the fix...that was it! I appreciate your taking the
time to look it over. After looking at it for hours, it's hard to tell
where discrepancies are. Thank you for the tutorial on containers and
floats as well. It's very helpful.

I'm really happy with how this site looks and your help has been great.

Betsy
Jun 27 '08 #9
In article
<29************ *************** ***@posted.fing erlakestechnolo gygroup>,
BMc <be******@yahoo .comwrote:
Ben C wrote:
On 2008-05-25, BMc <be******@yahoo .comwrote:
[...]
It can be seen here:
http://myweb.fltg.net/users/bethmcgee/index.html

I have a mysterious issue with ...
The problem is the height of #wrapabout (etc.) ...
More explanation here: http://netweaver.com.au/floatHouse


Thanks so much for the fix...that was it! I appreciate your taking the
time to look it over. After looking at it for hours, it's hard to tell
where discrepancies are. Thank you for the tutorial on containers and
floats as well. It's very helpful.

I'm really happy with how this site looks and your help has been great.

Betsy
Just a few things that you might consider further:

Probably best to put in the opening <htmland closing </htmltags.

Don't mix up XML type construction with HTML: Not <link... />. Leave the
forward slash out here.

Don't use <p align="..."but use css instead.

Encode your "&"s as "&amp;"s

And on more substantial matters:

I suggest get rid of most of your pairs:

margin:auto;
width: 100%;

Also get rid of most of your

width: 60em;

They are on so many things!

Consider instead a simplification, putting something like on just:

#outside {
....

margin: auto;
width: 60em;
....
}

A div is 100% wide by default, no need to be saying this so often unless
the circumstances are special.

75% is a bit small for the footer. I suggest 85%.

And, one day, perhaps you need to look into the issue of allowing your
site to be more user friendly at 800px wide.

--
dorayme
Jun 27 '08 #10

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

Similar topics

4
4067
by: Els | last post by:
Hi all, Whilst testing other things on www.browsercam.com, I found that some pages with absolute positioned pictures were all messed up in Mac's Opera 6.0 and even worse on Safari 1.0, and worse again on Linux' Konqueror 3.0.5. I've collected some of the views on http://www.browsercam.com/public.aspx?proj_id=43251 Where for each of the 3 pages I selected, you can see the
0
2287
by: The Master | last post by:
Ok I went through and deleted code until I discovered the culprit. I then went back to my original style sheet and removed the CSS declaration that caused the floating to brake in safari 1.2. Once I removed it, the floating worked as expected in safari, but broke it in opera 7.5. The interesting part is the style declaration that causes safari to brake is the declaration I had used to fix the bug in Opera 7.5 originally. As far as I...
4
2158
by: The Master | last post by:
Why will the unordered list not float in opera 7.5 unless a fixed/liquid width is applied to the unordered lists containing block? Then on the same token why does specifying a fixed/liquid width on the containing block then cause the floating to brake in safari 1.2 (it also brakes it in opera 4-6, hence the reason I use a sudo-element not recognized by opera 4-6 so it doesn't apply the fixed/liquid width)? ...
6
8890
by: Sander Tekelenburg | last post by:
While working on <http://www.lotzofmusic.com/> I ran into some issues with overflow (the decorative fishes). It seems to me the construction is sound, yet Safari ignores the overflow:hidden. At first glance it appeared that this is related to the fact that the SPANs contain only a background image and have a defined width & height, but no: I put up a simplified test-case at <http://santek.no-ip.org/~st/tests/CSS/overflow_hidden.php>,...
11
2223
by: listerofsmeg01 | last post by:
Argh! I'm going nuts trying to get a constant margin after a floated div that works cross browser. This works in IE but not Firefox: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head></head> <body> <div style="float:left; height:100px; background-color:red;">Hi, I'm floating</div>
6
1950
by: raknin | last post by:
I am creating a dynamic list on the server using php file,when I run the PHP script in all 4 browsers (IE 6, Firefox 2, opera and safari 3) every think go Ok and the list is created. but when I call the php script from the browser using Ajax, the list is created fine in IE and Opera but on Firefox and safari I got the following error: "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in...
6
1552
by: BMc | last post by:
So, as per Beauregard's suggestion, I have delved into the world of percentages and more fluid design for my next project. I am going along okay so far and have already determined that I will be doing a conditional comment for a separate Stylesheet for IE but I am having a problem now in Firefox, Safari, and Opera. If you would like to see my problem, please visit http://myweb.fltg.net/users/bethmcgee/index.html
3
1928
by: Jorge | last post by:
Based on the table shuffling code of the recent cljs thread "Randomize HTML Table Rows from JavaScript " (http://tinyurl.com/56g37t), I get this results : e.replaceChild() (SAM's code) : FF2 : 1x FF3: 1.3x Opera 9.5 : 4.8x Safari r34469 : 8.4x
15
2017
by: dhtml | last post by:
Title says it. If I use a for in loop on an HTML collection, I get length twice. <!DOCTYPE HTML> <html lang="en"> <head> <title>length twice</title> </head> <body> <form action="javascript:;" id="form1">
0
9538
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
10123
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
9975
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9788
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7342
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
5241
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...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3889
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
3
2765
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.