473,398 Members | 2,188 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,398 software developers and data experts.

"Absolute" bad idea?

Hi

Centered links are hidden by the footer in resolution 800x600 because divs
have position absolute and I don't know
how to prevent it. For IE I can change position by css "expresion" but
Firefox
don't support it.
My page: http://exterior.pl/bumaga/
Nov 7 '06 #1
8 1980
On 2006-11-07, vitay <vi***@nohost.comwrote:
Hi

Centered links are hidden by the footer in resolution 800x600 because divs
have position absolute and I don't know
how to prevent it. For IE I can change position by css "expresion" but
Firefox
don't support it.
My page: http://exterior.pl/bumaga/
You could give #container a min-height. Which you have done, except a
min-height of 100% (of the viewport height) isn't really helping.

height: 100%;
min-height: 500px;

will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).
Nov 7 '06 #2
>
You could give #container a min-height. Which you have done, except a
min-height of 100% (of the viewport height) isn't really helping.

height: 100%;
min-height: 500px;

I don't understand what does it mean?
will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).

Nov 7 '06 #3
On 2006-11-07, vitay <vi**@host.comwrote:
>
>>
You could give #container a min-height. Which you have done, except a
min-height of 100% (of the viewport height) isn't really helping.

height: 100%;
min-height: 500px;

I don't understand what does it mean?
It means the height should be either 100% of the viewport (the user's
window), or 500px, whichever is the greater.

If the user's window is less than 500px, they'll typically get a
scrollbar to find their way to the bottom of the page.
Nov 7 '06 #4
vitay wrote:
>
My page: http://exterior.pl/bumaga/
Yes, absolute positioning is generally a bad idea, especially if you
aren't very knowledgeable in CSS. The tendency is to brow-beat your
design to behave as you wish, while you really only create a fragile
layout that will be trouble to some portion of your visitors. Your page
in particular suffers from a few things common with the inexperienced:

1. "div soup" - there is virtually no semantic markup, not even 1
heading. You can (and should) replace most of those divs with proper
heading, list and paragraph markup.

2. Neither the HTML nor CSS validates. Validation eliminates syntax
errors as a cause of rendering issues. How do you expect browsers to
render invalid code at all, let alone consistently?

3. Setting font sizes in px, then setting container widths in px,
assuming the visitor will be happy with your chosen sizes. That's an
unwise assumption. If you don't already have a gecko browser (Firefox,
SeaMonkey, et al) then download one now from mozilla.org. Test your page
at an enlarged text size, at least 150% zoom, preferably higher. If your
layout doesn't adapt well, go back to the drawing board.

BTW, medium gray text on a black background is really hard to read.

--
Berg
Nov 7 '06 #5
will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).
And in html>body #container what I must change?
Nov 8 '06 #6
On 2006-11-08, vitay <vi***@nohost.comwrote:
>
>will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).

And in html>body #container what I must change?
Delete the line that says "height: auto".

You are setting height on #container twice. The first time you set it to
100%, then you set it again to "auto".

The second one wins because the second selector is more specific.
Nov 8 '06 #7
>>will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).

And in html>body #container what I must change?

Delete the line that says "height: auto".

You are setting height on #container twice. The first time you set it to
100%, then you set it again to "auto".

The second one wins because the second selector is more specific.
Thanx, yes it work now but only in Firefox, it seems that IE 6 don't use
min-height or maybe is somethin wrong?
Nov 8 '06 #8
On 2006-11-08, vitay <vi**@host.comwrote:
>
>>>will work, but only if you also get rid of the selector a bit lower down
(html>body #container) that sets height on #container to auto
(superseding the height: 100%).

And in html>body #container what I must change?

Delete the line that says "height: auto".

You are setting height on #container twice. The first time you set it to
100%, then you set it again to "auto".

The second one wins because the second selector is more specific.

Thanx, yes it work now but only in Firefox, it seems that IE 6 don't use
min-height or maybe is somethin wrong?
I have heard IE doesn't support min-height. I think there's some devious
workaround for that to which a link was posted in either this NG or
alt.html not very long ago. You could try searching the archives.
Nov 8 '06 #9

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

Similar topics

3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
2
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the...
0
by: Martin Colmenares | last post by:
After I set my <%@ page ValidateRequest="false" %> , I still get the error illustrated below. The msdn mentioned something about filtering using the HTMLEncode. This is a snippet of the code that...
5
by: TPS | last post by:
When I set trace enable to true in my web.config file, the debug info does not display at the "bottom" of the page, it displays "under" all of my buttons, labels, grids etc. This behavior...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
1
by: titch | last post by:
A curious problem I've encountered which can be seen with a simple piece of HTML: <div id="a" style="position: absolute; top:5px; left: 5px; width:100px; height:100px; border: 1px solid red;">...
4
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web...
10
by: JDT | last post by:
Hi, Can someone provide me an example that uses std::max_element() (probablly the predicate version) to return the max "absolute" integer in a vector? Your help is much appreciated. Tony ...
7
by: raylaur | last post by:
I'm using a javascript "slide" function to move a <div> layer in 10 pixel increments from one location on a page to another. The layer contains a GIF image. It's basically a side panel that flies out...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
0
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...

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.