Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Css Postioning Question
#1
Posted 25 February 2004 - 04:12 PM
here is a link to the site:design yolk
here is a link to the css: css document
I just want the absolute positioned elements to scale with the other elements
ps-links or dead as of now.
and thats latin dummy text if you were wondering.
#2
Posted 25 February 2004 - 05:27 PM
www.webstreamdynamics.com/css-by-example/
I leave off the "http://" so you need to do a copy and paste into the browser's address bar.
HTH,
webstream
#3
Posted 25 February 2004 - 05:41 PM
#4
Posted 25 February 2004 - 06:37 PM
webstream
#5
Posted 26 February 2004 - 04:22 AM
good luck
#6
Posted 26 February 2004 - 05:06 AM
NEVER use your absolute positioned div tags inside our page content, have them either right after the starting body tag or before the ending one and never mixed with your content, otherwise you will get some really strange behaviour.
For IE and Mac issues I do suggest that you do not set borders or colours for the div tags (I burned myself on that a while ago). Table inside a div tag should also not have a width using percentages, unless they are inside another table.
Also do not forget to use ids for the divs, as well as setting coordinates, width, height, visibility and the z-index.
Div tags do not go over select boxes (<select></select>) or Flash.
Bernhard
#7
Posted 26 February 2004 - 03:47 PM
#8
Posted 26 February 2004 - 03:51 PM
The problem I am having is that when I position the div with the html text over the flash, it disappears. The html text will only display when it is not over the flash. Is there a workaround?
#9
Posted 26 February 2004 - 06:24 PM
#10
Posted 26 February 2004 - 07:04 PM
http://www.ddncafe.c...tent.php?aid=52
A major tip for absolute positioning:
NEVER use your absolute positioned div tags inside our page content, have them either right after the starting body tag or before the ending one and never mixed with your content, otherwise you will get some really strange behaviour.
For IE and Mac issues I do suggest that you do not set borders or colours for the div tags (I burned myself on that a while ago). Table inside a div tag should also not have a width using percentages, unless they are inside another table.
Also do not forget to use ids for the divs, as well as setting coordinates, width, height, visibility and the z-index.
Those are some bizarre tips my friend
#11
Posted 26 February 2004 - 07:07 PM
Its a well documented method- it works fine on Moz/Linux so the vast majority of your audience will see it as intended. If you care about NS4.7/6 users you could give them an alternate page- I can post you some Flash sniffer code if you want it.Has anyone ever employed this method? I am going to play around with it but would love some feedback.
#12
Posted 26 February 2004 - 09:17 PM
#13
Posted 27 February 2004 - 02:35 AM
Starting with IE version 4 upwards I have had lots of time to experiment with div tags. A colleague of mine also had IE behavign very oddly on some occasions when using absolute positioning somewhere in the content, if you want to always the the div tag showing up on the same spot. Sometimes they do need to be places elsewhere in the HTML, but that is a rae occasion for me.Those are some bizarre tips my friend Can I ask how you reached these conclusions?A major tip for absolute positioning:
NEVER use your absolute positioned div tags inside your page content, have them either right after the starting body tag or before the ending one and never mixed with your content, otherwise you will get some really strange behaviour.
For IE and Mac issues I do suggest that you do not set borders or colours for the div tags (I burned myself on that a while ago). Table inside a div tag should also not have a width using percentages, unless they are inside another table.
Also do not forget to use ids for the divs, as well as setting coordinates, width, height, visibility and the z-index.
Another colleague does have a Mac in the office with Safari and IE, and some clients haven't got PCs, try your sites on those browsers, and some really weird effects will show the moment a div tag has borders or colours, and it contains somethign that would stretch its measurements, the browser actually renders it in its original size and not the stretched size, which works fine on the Windows version of IE.
Also from IE 4 up to IE 6, using the following caused weird effects: <div style="position:absolute; z-index:1; left:200px; top: 150px; width:100px; height:100px;"><table width="100%"> ...
What happened was that the table was using 100% of the browser client area (the part where the site shows) width and due to the positioning, it went off on the right side of the page, and caused a horizontal scrollbar. The idea was that the table fills 100% of the width of the div like it would do when being put inside a TD tag. I am not sure if IE still does that, since I now always use the proper width when putting a table immediately inside a div. As far as I remember, my latest test on IE still showed that problem. IE 5.5 cetainly still has it.
Bernhard
#14
Posted 27 February 2004 - 03:28 AM
That's because with those settings it should go off the page and introduce a scroll bar. 100% is 100%, adding a 200px left setting makes it 100% +200px - giving you 200px of scroll - remember, default overflow is visible. http://www.w3.org/TR...ef-table-layoutAlso from IE 4 up to IE 6, using the following caused weird effects: <div style="position:absolute; z-index:1; left:200px; top: 150px; width:100px; height:100px;"><table width="100%"> ...
What happened was that the table was using 100% of the browser client area (the part where the site shows) width and due to the positioning, it went off on the right side of the page, and caused a horizontal scrollbar.
Edited by hurricane, 27 February 2004 - 03:37 AM.
#15
Posted 27 February 2004 - 03:41 AM
But that should then apply to tables as well, which doesn't hapen, since the div is behaving differently than a table, tables will only stretch if they have been set to stretch or if their content forces them to stretch. Div tags just simply start stretching as if they cannot limit a table inside them like any TD can do.That's because with those settings it should go off the page and introduce a scroll bar. 100% is 100%, adding a 200px left setting makes it 100% +200px - giving you 200px of scroll - remember, default overflow is visible.
Just a quick note about Netscape 4.x (I hope nobody is still using this except for testing), Netscape 4.x had a major flaw, when the id of a Div tag had an underscore in it, and it was references using JavaScript, Netscape could only see up to the point before the underscore.
Bernhard
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








