T
tshad
I have a page with some sliding menus. This is code that I had gotten years
ago and am trying to make changes to it to fix some issues I had with it on
different browsers when I got it.
It consists of 3 divs. The main container, the container inside the main
container that holds the content and is the part that slides, and the
content.
I want to control where the content will show up relative to my link without
having to put absolute coordinates in it. I will control the horizontal
position with padding but first have to figure out why IE is acting
differently than FireFox. I have it sort of working but I get different
results based on the brower. I now have urls to display on a free website I
found which also have other stuff added by the website. I put a lot of
spaces before and after my code.
I have a couple of issues,
1) the borders (red and yellow) are not displayed in Firefox or in my free
website using IE. If I take the whole page on my machine the borders show.
2) In my Absolute version: http://tshad1.webs.com/Absolute.htm, in IE, the
divs are to the left of the link (Console). In FireFox they are below. If I
add a <br/> after the word Console then IE looks like FireFox and FireFox
remains the same.
3) In my NotAbsolute version: http://tshad1.webs.com/NotAbsolute.htm, they
both look the same in positioning (with or without the <br/>).
4) The style is being injected into the page from javascript. Not sure why
but the author had put ID before and after the styles:
("#menu1Container {overflow:hidden; z-index:10000;}#menu1Container.
If I take out the 2nd #menu1Container, then IE works like Firefox:
http://tshad1.webs.com/AbsoluteChangeScript.htm. This seem to be what is
causing the divs to show up next to the link. In my desktop version it also
changes the border and now the red border is this size of the inner content
and not the size of the div. You can't see see the border difference until
I figure out why the borders are not showing in FireFox and IE on webs.com.
The code for the page on my desktop is:
**********************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>
FAQS
</title><meta http-equiv="content-type" content="application/xhtml+xml;
charset=UTF-8" />
<script type="text/javascript">
document.writeln('<style type="text/css">');
document.writeln("#menu1Container {overflow:hidden;
z-index:10000;}#menu1Container, #menu1Content { width:190px; height:60px;
clip:rect(0 190 300 0); }");
document.writeln('</style>');
</script>
</head>
<body>
<div style="height:100%;border:solid 4px green" >
<table cellpadding="0" cellspacing="0" border="3" align="center"
style="width:776px;height:100%">
<tr>
<td style="height:100px">
<div style=" background-color:White">
</div>
</td>
</tr>
<tr>
<td style=" height:400px; background-color:Gray;
text-align:left;vertical-align:top">
<table cellspacing="0" cellpadding="0" style="
border:solid 4px purple;width:100%;height:100%" >
<tr>
<td style="width:150px; text-align:left;margin:0
0 0 10px;vertical-align:top" bgcolor="#EDE2E6">
Advantages<br />
<a >Console</a>
<div id="menu1Container" style="border:
solid 2 Red">
<div id="menu1Content"
class="slidingMenu" style="width:190px; height:300px;border: solid 2
Yellow">
<div style="margin-right:1px;
margin-bottom:1px;
border:1px solid #2FABAD;
background-color:Green;
">
<a
href="default.aspx">Home</a>
<a
href="jobSummaryList.aspx">Job Summary List</a>
<a
href="jobSummaryList4.aspx">Job Summary List - 2 screens</a>
</div>
</div>
</div><br>
Concerns<br />
</td>
<td>
This is faqs
</td>
</table>
</td>
</tr>
<tr bgcolor="#EDE2E6">
<td style="height:39px" colspan="2">
</td>
</tr>
</table>
</div>
</body>
</html>
**********************************
Thanks,
Tom
ago and am trying to make changes to it to fix some issues I had with it on
different browsers when I got it.
It consists of 3 divs. The main container, the container inside the main
container that holds the content and is the part that slides, and the
content.
I want to control where the content will show up relative to my link without
having to put absolute coordinates in it. I will control the horizontal
position with padding but first have to figure out why IE is acting
differently than FireFox. I have it sort of working but I get different
results based on the brower. I now have urls to display on a free website I
found which also have other stuff added by the website. I put a lot of
spaces before and after my code.
I have a couple of issues,
1) the borders (red and yellow) are not displayed in Firefox or in my free
website using IE. If I take the whole page on my machine the borders show.
2) In my Absolute version: http://tshad1.webs.com/Absolute.htm, in IE, the
divs are to the left of the link (Console). In FireFox they are below. If I
add a <br/> after the word Console then IE looks like FireFox and FireFox
remains the same.
3) In my NotAbsolute version: http://tshad1.webs.com/NotAbsolute.htm, they
both look the same in positioning (with or without the <br/>).
4) The style is being injected into the page from javascript. Not sure why
but the author had put ID before and after the styles:
("#menu1Container {overflow:hidden; z-index:10000;}#menu1Container.
If I take out the 2nd #menu1Container, then IE works like Firefox:
http://tshad1.webs.com/AbsoluteChangeScript.htm. This seem to be what is
causing the divs to show up next to the link. In my desktop version it also
changes the border and now the red border is this size of the inner content
and not the size of the div. You can't see see the border difference until
I figure out why the borders are not showing in FireFox and IE on webs.com.
The code for the page on my desktop is:
**********************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>
FAQS
</title><meta http-equiv="content-type" content="application/xhtml+xml;
charset=UTF-8" />
<script type="text/javascript">
document.writeln('<style type="text/css">');
document.writeln("#menu1Container {overflow:hidden;
z-index:10000;}#menu1Container, #menu1Content { width:190px; height:60px;
clip:rect(0 190 300 0); }");
document.writeln('</style>');
</script>
</head>
<body>
<div style="height:100%;border:solid 4px green" >
<table cellpadding="0" cellspacing="0" border="3" align="center"
style="width:776px;height:100%">
<tr>
<td style="height:100px">
<div style=" background-color:White">
</div>
</td>
</tr>
<tr>
<td style=" height:400px; background-color:Gray;
text-align:left;vertical-align:top">
<table cellspacing="0" cellpadding="0" style="
border:solid 4px purple;width:100%;height:100%" >
<tr>
<td style="width:150px; text-align:left;margin:0
0 0 10px;vertical-align:top" bgcolor="#EDE2E6">
Advantages<br />
<a >Console</a>
<div id="menu1Container" style="border:
solid 2 Red">
<div id="menu1Content"
class="slidingMenu" style="width:190px; height:300px;border: solid 2
Yellow">
<div style="margin-right:1px;
margin-bottom:1px;
border:1px solid #2FABAD;
background-color:Green;
">
<a
href="default.aspx">Home</a>
<a
href="jobSummaryList.aspx">Job Summary List</a>
<a
href="jobSummaryList4.aspx">Job Summary List - 2 screens</a>
</div>
</div>
</div><br>
Concerns<br />
</td>
<td>
This is faqs
</td>
</table>
</td>
</tr>
<tr bgcolor="#EDE2E6">
<td style="height:39px" colspan="2">
</td>
</tr>
</table>
</div>
</body>
</html>
**********************************
Thanks,
Tom