473,378 Members | 1,236 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,378 software developers and data experts.

relative/absolute positioning

I am trying to create a menu system.

The mainmenu is a table
<table><tr><td>menu1</td><td>menu2</td></tr></table>

No I try insert the submenu so that it becomes relative to the main menu
item. For menu1 the relevant code then becomes:

<td style="position:relative;">menu1<div style="position:absolute; top:20;
left:0;">
<a href=x.htm>option1</a><br>
<a href=y.htm>option2</a>
</div></td>

This works fine in IE: the div is positioned relative to the td of menu1.
However, in Mozilla it doesn't work. The div becomes relative to the top of
the page.

What am I doing wrong?

Thanks,

Wim
Jul 23 '05 #1
24 2179
Wim Roffal wrote on 08 sep 2004 in comp.lang.javascript:
I am trying to create a menu system.

The mainmenu is a table
<table><tr><td>menu1</td><td>menu2</td></tr></table>

No I try insert the submenu so that it becomes relative to the main
menu item. For menu1 the relevant code then becomes:

<td style="position:relative;">menu1<div style="position:absolute;
top:20; left:0;">
<a href=x.htm>option1</a><br>
<a href=y.htm>option2</a>
</div></td>

This works fine in IE: the div is positioned relative to the td of
menu1. However, in Mozilla it doesn't work. The div becomes relative
to the top of the page.

What am I doing wrong?


What you are doing wrong is asking this in a javascript NG.

There is no script to be seen and
for css style there is a NG called:

comp.infosystems.www.authoring.stylesheets

[a strange name for this group, I admit]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #2
In article <ch**********@reader11.wxs.nl>, wi*************@nospamm-planet.nl
enlightened us with...

<td style="position:relative;">menu1<div style="position:absolute; top:20;
left:0;">
<a href=x.htm>option1</a><br>
<a href=y.htm>option2</a>
</div></td>

This works fine in IE: the div is positioned relative to the td of menu1.
Then IE is wrong. You're probably using quirks mode by not providing a valid
doctype with a URL.
Absolute is absolute.
However, in Mozilla it doesn't work. The div becomes relative to the top of
the page.

As it should be.
What am I doing wrong?


Posting a CSS question to a javascript group. ;)

Put this at the top of the page, save it, then look in IE again. What
happened?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

See
http://msdn.microsoft.com/workshop/a...ts/doctype.asp

See the group mentioned by Evertjan as well for additional CSS help.

--
--
~kaeli~
Reading while sunbathing makes you well red.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3
kaeli <ti******@NOSPAM.comcast.net> writes:
In article <ch**********@reader11.wxs.nl>, wi*************@nospamm-planet.nl
enlightened us with...

<td style="position:relative;">menu1<div style="position:absolute; top:20;
left:0;"> This works fine in IE: the div is positioned relative to the td of menu1.
Then IE is wrong. You're probably using quirks mode by not providing a valid
doctype with a URL.
Absolute is absolute.


Actually, "position:absolute" must position relative to its containing
block, which is the nearest enclosing positioned block-level element,
if any. That is why it is not relative to the "td" (it is not a block level
element).
<URL:http://www.w3.org/TR/CSS2/visuren.html#absolute-positioning>
<URL:http://www.w3.org/TR/CSS2/visuren.html#q29>
<URL:http://www.w3.org/TR/CSS2/visudet.html#containing-block-details>

The problem is that the "td" has "display:table-cell" and not
"display-block".

Anyway, the "top:20" is also wrong, and should be "top:20px". That
means that the y-position of the div is not changed from its default,
which might be why it *seems* to be positionened correctly anyway.
However, in Mozilla it doesn't work. The div becomes relative to the top of
the page.


Ditto in Opera. If I add "display:block" to the "td", then the "div"
does become positioned wrt. the "td", because it is now a positioned
block-level element, so it becomes the containing block of the "div".
As it should be.
Actually, yes, but the reasons for that are not obvious :)
Put this at the top of the page, save it, then look in IE again. What
happened?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


I concur, and fix the bugs in the CSS. Then perhaps wrap the
"div" in another, relatively positioned, "div" inside the "td".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #4
On Wed, 08 Sep 2004 18:51:43 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:

[snip]
Then perhaps wrap the "div" in another, relatively positioned, "div"
inside the "td".


As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used list? It
would certainly involve less mark-up.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #5
Wim Roffal wrote:
<td style="position:relative;">menu1<div style="position:absolute; top:20;
left:0;">
<a href=x.htm>option1</a><br>
<a href=y.htm>option2</a>
</div></td>

This works fine in IE: the div is positioned relative to the td of menu1.
However, in Mozilla it doesn't work. The div becomes relative to the top of
the page.

What am I doing wrong?


You're asking a CSS question in a JavaScript newsgroup.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #6
In article <ek**********@hotpop.com>, lr*@hotpop.com enlightened us with...
Actually, "position:absolute" must position relative to its containing
block, which is the nearest enclosing positioned block-level element,
if any. That is why it is not relative to the "td" (it is not a block level
element).

<URL:http://www.w3.org/TR/CSS2/visuren.html#absolute-positioning>


Ah, I was looking for that and couldn't find it. All the sites I was hitting
with Google search said it was indeed absolute. Of course, I was looking in
CSS1 like a moron.
Hrmph.

Well, at least I know if I say something dumb, someone will correct me.
Thanks. :)
--
--
~kaeli~
Black holes were created when God divided by 0.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #7

"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht
news:opsd0p6fcgx13kvk@atlantis...
On Wed, 08 Sep 2004 18:51:43 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:

[snip]
Then perhaps wrap the "div" in another, relatively positioned, "div"
inside the "td".


As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used list? It
would certainly involve less mark-up.


Can you give an example of what you mean?

Wim

Jul 23 '05 #8
On Wed, 8 Sep 2004 20:50:49 +0200, Wim Roffal wrote:
"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht

As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used list? It
would certainly involve less mark-up.


Can you give an example of what you mean?


I am not sure if this is a *good* example,
but the menu down the left of my site is
a styled list.. <http://www.physci.org/codes/>

Often web-designers would mark that up as a table.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #9
*Andrew Thompson* wrote in comp.lang.javascript:
On Wed, 8 Sep 2004 20:50:49 +0200, Wim Roffal wrote:
"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht

As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used list? It
would certainly involve less mark-up.


Can you give an example of what you mean?


I am not sure if this is a *good* example,
but the menu down the left of my site is
a styled list.. <http://www.physci.org/codes/>

Often web-designers would mark that up as a table.


This page is unstyled for me in Opera 7.51 Win2K!

http://accessibletoall.com/au/pix/mi..._org_codes.png [52KB]
--
Andrew Urquhart
- FAQ: http://www.jibbering.com/faq/
- Archive: http://www.google.com/groups?q=comp.lang.javascript
- Contact me: http://andrewu.co.uk/contact/
Jul 23 '05 #10
On Wed, 8 Sep 2004 20:50:49 +0200, Wim Roffal
<wi*************@nospamm-planet.nl> wrote:
"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht
news:opsd0p6fcgx13kvk@atlantis...
On Wed, 08 Sep 2004 18:51:43 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:

[snip]
Then perhaps wrap the "div" in another, relatively positioned, "div"
inside the "td".


As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used
list? It would certainly involve less mark-up.


Can you give an example of what you mean?


Well first, exactly what kind of menu are you trying to produce. By the
looks of things, it's a drop-down, application-like menu. If that's the
case, take a look at:

<URL:http://devedge.netscape.com/viewsource/2003/devedge-redesign-js/>

and the two links in the Conclusion. None of them are perfect, but they're
far better than most horizontal menus in widespread use. If it's a
vertical menu, take Andrew's link. If it's none of the above, you'd best
state your aims clearly.

As for the semantics, stuffing a series of DIVs inside a TABLE element
doesn't make a lot of sense from a structural point of view.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #11
On Wed, 08 Sep 2004 19:41:29 GMT, Andrew Urquhart wrote:

(A.T.)
I am not sure if this is a *good* example,
but the menu down the left of my site is
a styled list.. <http://www.physci.org/codes/>
... This page is unstyled for me in Opera 7.51 Win2K!

http://accessibletoall.com/au/pix/mi..._org_codes.png


Huh! Go figure.. It renders as I
expect, using Opera 7.54 on Win XP.

I do notice that the in-line styles are
rendered (the 'Home' link), could be a
a) a content-negotiation thing, or..
b) kludgy release of Opera, but I put odds on..
c) the server got a bit sleepy during the
download and did not deliver the stylesheet.

Could you refresh the page later and
see if it comes good?

...errr you, ..haven't overidden the
site style-sheet with a user stylesheet
by any chance, have you?

[ Thanks for the screen-shot BTW, a
picture paints a thousand words. ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #12
On Wed, 08 Sep 2004 20:15:54 GMT, Andrew Thompson wrote:
c) the server got a bit sleepy during the
download and did not deliver the stylesheet.

Could you refresh the page later and
see if it comes good?


Now I look more closely at the screen-grab,
I'm even more sure that's it. One of the
images is missing as well.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #13
*Andrew Thompson* wrote in comp.lang.javascript:
I do notice that the in-line styles are rendered (the 'Home' link),
could be a a) a content-negotiation thing, or.. b) kludgy release of
Opera, but I put odds on.. c) the server got a bit sleepy during the
download and did not deliver the stylesheet.

Could you refresh the page later and see if it comes good?
Oh dear, yes it has! Earlier I tried several hard-refreshes before I
decided to mention it.
..errr you, ..haven't overidden the site style-sheet with a user
stylesheet by any chance, have you?
The screenshot shows that the browser is in 'author mode'.
[Thanks for the screen-shot BTW, a picture paints a thousand words.]


OK, I'll delete it in a moment now that it's finished with.
--
Andrew Urquhart
- FAQ: http://www.jibbering.com/faq/
- Archive: http://www.google.com/groups?q=comp.lang.javascript
- Contact me: http://andrewu.co.uk/contact/
Jul 23 '05 #14
On Wed, 08 Sep 2004 20:43:33 GMT, Andrew Urquhart wrote:
Could you refresh the page later and see if it comes good?


Oh dear, yes it has! Earlier I tried several hard-refreshes before I
decided to mention it.


The server must be having some real
problems, it must have been very
hard pressed, I better look into it.
..errr you, ..haven't overidden the site style-sheet with a user
stylesheet by any chance, have you?


The screenshot shows that the browser is in 'author mode'.


Oops, ..sorry! ( It was the thousand and
*oneth* word that would have got that
through my thick skull ;-)

Thanks again.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #15
Thanks Michael, Andrew and Andrew,

I indeed am looking for a horizontal menu and the Netscape stuff looks
interesting. I will study it.

My main problem with the example is that it is a two level menu. I want the
option to have more levels.

Wim
"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht
news:opsd0xbrhnx13kvk@atlantis...
On Wed, 8 Sep 2004 20:50:49 +0200, Wim Roffal
<wi*************@nospamm-planet.nl> wrote:
"Michael Winter" <M.******@blueyonder.co.invalid> schreef in bericht
news:opsd0p6fcgx13kvk@atlantis...
On Wed, 08 Sep 2004 18:51:43 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:

[snip]

Then perhaps wrap the "div" in another, relatively positioned, "div"
inside the "td".

As this is for a menu, wouldn't something more semantically appropriate
than a table and nested DIVs be better, such as the commonly used
list? It would certainly involve less mark-up.


Can you give an example of what you mean?


Well first, exactly what kind of menu are you trying to produce. By the
looks of things, it's a drop-down, application-like menu. If that's the
case, take a look at:

<URL:http://devedge.netscape.com/viewsource/2003/devedge-redesign-js/>

and the two links in the Conclusion. None of them are perfect, but they're
far better than most horizontal menus in widespread use. If it's a
vertical menu, take Andrew's link. If it's none of the above, you'd best
state your aims clearly.

As for the semantics, stuffing a series of DIVs inside a TABLE element
doesn't make a lot of sense from a structural point of view.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Jul 23 '05 #16
On Thu, 9 Sep 2004 15:56:12 +0200, Wim Roffal
<wi*************@nospamm-planet.nl> wrote:

[snip]
My main problem with the example is that it is a two level menu. I want
the option to have more levels.


I was working on one of those. It's extremely easy using CSS 2, but IE
doesn't support that at all well. I was in the process of adding script
fix-ups when I needed to reinstall my operating system. Yet, despite the
number of times I've done that, I still forget to back up all my data, so
I ended up losing most of what I didn't store in my last backup.

I will restart development, but I won't be finished anytime soon. For one
thing, I hope this group will review the result. Not just a technical
evaluation, but to test on browsers I don't have access to.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #17
In article <ch**********@reader13.wxs.nl>, wi*************@nospamm-planet.nl
enlightened us with...
Thanks Michael, Andrew and Andrew,

I indeed am looking for a horizontal menu and the Netscape stuff looks
interesting. I will study it.

My main problem with the example is that it is a two level menu. I want the
option to have more levels.


Aw, heck, why re-invent the wheel?
http://www.dynamicdrive.com

Unless, of course, you're just coding to practice or something. Other people
have already sweated out all the bugs and made menus as cross-browser as
possible. Don't let them code in vain. Especially when they let you use their
stuff for free. *grin*
--
--
~kaeli~
The man who fell into an upholstery machine is fully
recovered.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #18
On Thu, 9 Sep 2004 13:48:03 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:

[snip]
Aw, heck, why re-invent the wheel?
http://www.dynamicdrive.com


Because personally, I detest that script. The site in general, in fact.
I'd never recommend it myself. It represents everything that's discouraged
in this group.

That's why I do intend to produce a menu[1] that can replace Dynamic
Drive's. It's one less reason to reference that site. :)

[snip]

Mike
[1] I also intend to use it as coding practice, just as you suggested.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #19
In article <opsd2rgzzgx13kvk@atlantis>, M.******@blueyonder.co.invalid
enlightened us with...
Aw, heck, why re-invent the wheel?
http://www.dynamicdrive.com


Because personally, I detest that script. The site in general, in fact.
I'd never recommend it myself. It represents everything that's discouraged
in this group.


Um, there's lots of menus there.
http://www.dynamicdrive.com/dynamicindex1/index.html

Which one don't you like?

Just curious. I use, and very much like, HVMenu for my intranet application.
I tried, but didn't like, Jim's DHTML Menu. Too complicated to customize.

Anyway, my 2 cents, FWIW.

--
--
~kaeli~
Can you be a closet claustrophobic?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #20
On Fri, 10 Sep 2004 08:59:19 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:
In article <opsd2rgzzgx13kvk@atlantis>, M.******@blueyonder.co.invalid
enlightened us with...
Aw, heck, why re-invent the wheel?
http://www.dynamicdrive.com
Because personally, I detest that script. The site in general, in fact.
I'd never recommend it myself. It represents everything that's
discouraged in this group.


Um, there's lots of menus there.
http://www.dynamicdrive.com/dynamicindex1/index.html


"That script" was HVMenu. You usually recommend it, so I assumed you did
here, too. The other comments apply to both the script, and what I've seen
of the site in general.
Which one don't you like?


All of them[1]. Some seem better than others, but none offer any kind of
decent scriptless fallback (one even requires frames!). On an intranet,
some might be OK (though there will be accessibility problems[2]), but not
on the Web.

[snip]

Mike
[1] I ignored ones that didn't claim to work on "all" browsers.
[2] Therefore possible legal problems.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #21
In article <opsd3975qwx13kvk@atlantis>, M.******@blueyonder.co.invalid
enlightened us with...
http://www.dynamicdrive.com/dynamicindex1/index.html
"That script" was HVMenu. You usually recommend it, so I assumed you did
here, too. The other comments apply to both the script, and what I've seen
of the site in general.
Which one don't you like?


All of them[1]. Some seem better than others, but none offer any kind of
decent scriptless fallback (one even requires frames!).


Requires frames?
Eww.
I use frames for my intranet app, but wouldn't for the internet.

As to fallback, well of course not. How could it? It's script. If script
isn't enabled, it won't work. That's why a good author always has text links
somewhere in the page, either at the bottom or where the menu would appear if
script *were* enabled.
A general site should always work if it is on the internet, whether a user
has plugins, CSS, script, or whatever. (general != movie clips sites and so
on) A site all about javascript scripts, at least IMO, shouldn't be expected
to work without script enabled. That would be like going to a Quicktime site
and wanting to not have to use Quicktime.

What idea did you have for "fallback" in a script for scriptless browsers?
Note that I look only at the script, not the page that has it as an example.
I write my own HTML and add things so people can use the page without script
if it's not for my intranet app.
On an intranet,
some might be OK (though there will be accessibility problems[2]), but not
on the Web.


Again, text links solve accessibility problems.
Did you have a better idea?
I'm always open to new ideas.
--
--
~kaeli~
A lot of money is tainted - It taint yours and it taint mine.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #22
kaeli <ti******@NOSPAM.comcast.net> writes:
As to fallback, well of course not. How could it? It's script. If script
isn't enabled, it won't work.
Ofcourse. That is why making the entire menu using scripts is a bad idea,

However, making a sufficient part of the menu using plain HTML, and then
enhancing it using Javascript, will both work with scripts enabled and
and without (just not with as many features).

Any menu solution should be both the enhancing script *and* the basic
HTML framework. If the menu in question is all script, that is reason
enough to discourage its use on the internet.
That's why a good author always has text links somewhere in the
page, either at the bottom or where the menu would appear if script
*were* enabled.
Exactly. Those links could very well be part of the menu.

In fact, if they are added using the <noscript> tag, then they are only
available if Javascript is completely disabled. That might not be the
reason for the menu failing. Maybe the menu's Javascript is incompatible
with the used browser (it happens), but Javascript is enabled. Then
neither the menu, nor the <noscript> element, is available.

For a gracefull fallback, either the basic navigation should become
part of the menu, or it should be remove using Javascript after the
menu has been created successfully (and all needed features tested
for).
A site all about javascript scripts, at least IMO, shouldn't be expected
to work without script enabled. That would be like going to a Quicktime site
and wanting to not have to use Quicktime.


But a site that supplies Javascripts for *other* pages to use *should* offer
scripts (and HTML) that offers gracefull fallback.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #23
In article <is**********@hotpop.com>, lr*@hotpop.com enlightened us with...
for).
A site all about javascript scripts, at least IMO, shouldn't be expected
to work without script enabled. That would be like going to a Quicktime site
and wanting to not have to use Quicktime.


But a site that supplies Javascripts for *other* pages to use *should* offer
scripts (and HTML) that offers gracefull fallback.


I never thought of it that way.
I always just make my own if needed. I rarely need to, since the only thing I
need it for is my intranet stuff, which can, and does, require javascript.

I still say it's better than trying to make one from scratch by myself. :)

If someone comes up with a great alternative, please post it over there so
people can see how ya'll think it should be done. And so I can use it.
*grins*

--
--
~kaeli~
Who is General Failure and why is he reading my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #24
On Fri, 10 Sep 2004 13:10:02 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:

[snip]
If someone comes up with a great alternative, please post it over there
so people can see how ya'll think it should be done. And so I can use it.
*grins*


I almost did[1]. :)

Unfortunately, I'll have to start again from scratch.

Mike
[1] I don't know if it would have been "great", but it would hopefully
have been an improvement, especially once you folks cast your eyes over it.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #25

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

Similar topics

4
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I...
2
by: Catherine Lynn Wood | last post by:
I need to know how to overlap DIV content within 'relative' associated rendering. I am building div layers in the middle of a page and when I set positioning to absolute in the CSS, it references...
8
by: Asad | last post by:
Hi, I am basically trying to accomplish drop down menus for navigation on a site. And I'm pretty much done except I am having one problem. The z-index is not working with relative positioning! ...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
1
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with...
2
by: nonsensitor | last post by:
I'm just learning xhtml & css, primarily from westciv's online tutorials and css guide. I've run into a couple of problems with a page I'm developing that I can't figure out. The first problem is...
3
by: mikewse | last post by:
I have a strange problem where it seems IE is doing the correct layout but Firefox and Safari isn't. I think I'm probably wrong, and there is something in the standards that say behaviour should be...
7
by: Cruelemort | last post by:
All, I have a div in my page that has a set width of 1000px, height of 200px, inside this i declare two more div's, both relatively positioned and floated left, the first is placed to the top...
3
by: LayneMitch | last post by:
Hello everyone. I'm designing a site for a friend of mine and I'm having a few issues. First off, I'm noticing that there is a difference between the default line- heights of IE and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.