[SOLUTION] floating image and css menu problem
[SOLUTION] floating image and css menu problem
I have a simple install very few changes made and I am using layout CSSMenu Horiz 1C. Problem is I have floated a flash slide show in the content but when the menus drop down they are behind the slideshow.
http://www2.markglassonline.com/index.php/home/rotate
Thank you.
cmsms install .13
Linux
PHP Version 4.4.2
Apache/1.3.3
http://www2.markglassonline.com/index.php/home/rotate
Thank you.
cmsms install .13
Linux
PHP Version 4.4.2
Apache/1.3.3
Last edited by dmgd on Thu Jul 13, 2006 3:21 pm, edited 1 time in total.
Mark
Re: floating image and css menu problem
this has been giving some others a problem just like yours :.
Re: floating image and css menu problem
Thanks Mark
I searched the site before I posted and found no post about this problem and thought I was all alone. However, I made the changeyou suggested but had no luck. The menu is still below the flash.
Thanks Mark
I searched the site before I posted and found no post about this problem and thought I was all alone. However, I made the changeyou suggested but had no luck. The menu is still below the flash.
Thanks Mark
Mark
Re: floating image and css menu problem
did you change it and change it back, i still see that line in your 'source' :.
Rotate
Some more test. Some more test. Some more test. Some
Rotate
Some more test. Some more test. Some more test. Some
Re: floating image and css menu problem
Thanks for the help!!
I have tried it both ways. I have also removed all style from the div around the flash movie. I still have the menu behind the flash. The only floats on the page are a couple of divs for the navigation at the end of the content div and in the css menu it's self. CSS Below.
I have also tried removing the div from around the flash, adding "align="right" and this has the same result. I abandond an earlier template I crreated because I was haveng the same issue. I thought it was my template. I can add an image and align it to the right and everyting is OK. Is this a flash issue?
Mark
I have tried it both ways. I have also removed all style from the div around the flash movie. I still have the menu behind the flash. The only floats on the page are a couple of divs for the navigation at the end of the content div and in the css menu it's self. CSS Below.
I have also tried removing the div from around the flash, adding "align="right" and this has the same result. I abandond an earlier template I crreated because I was haveng the same issue. I thought it was my template. I can add an image and align it to the right and everyting is OK. Is this a flash issue?
Mark
Code: Select all
/* Layout sections */
body {
background: #ccc;
color: #333;
}
div#pagewrapper {
border: 1px solid #000;
background: #fff;
}
div#header {
color: #fff;
}
div#footer {
color: #fff;
background-color: #385C72;
}
/* Links */
a,
a:link
a:active, a:visited {
color: #385C72;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
color: #000;
}/* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */
/* clearing */
.stretch,
.clear {
clear:both;
height:1px;
margin:0;
padding:0;
font-size: 15px;
line-height: 1px;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
* html>body .clearfix {
display: inline-block;
width: 100%;
}
* html .clearfix {
/* Hides from IE-mac \*/
height: 1%;
/* End hide from IE-mac */
}
/* end clearing */
/* replace */
.replace {
display:block;
background-repeat: no-repeat;
background-position: left top;
background-color:transparent;
}
/* tidy these up */
.replace * {
text-indent: -10000px;
display:block;
background-repeat: no-repeat;
background-position: left top;
background-color:transparent;
}
.replace a {
text-indent:0;
}
.replace a span {
text-indent:-10000px;
}
/* end replace */
/* accessibility */
span.accesskey {
text-decoration:none;
}
.accessibility {
position: absolute;
top: -999em;
left: -999em;
}
dfn {
position: absolute;
left: -1000px;
top: -1000px;
width: 0;
height: 0;
overflow: hidden;
display: inline;
}
/* end accessibility *//* A CSS Framework by Mike Stenhouse of Content with Style */
/* TYPOGRAPHY */
body {
text-align: left;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 75.01%;
line-height: 1em;
}
div {
font-size: 1em;
}
img {
border: 0;
}
/* LINKS */
a,
a:link
a:active, a:visited {
text-decoration: underline;
}
div#footer a,
div#footer a:link
div#footer a:active, div#footer a:visited {
color: #fff;
}
a:hover {
text-decoration: none;
}
/* END LINKS */
/* HEADINGS */
h1 {
font-size: 2em;
line-height: 1em;
margin: 0;
padding: 0;
}
h2 {
font-size: 1.5em;
line-height: 1.5em;
margin: 0 0 0.5em 0;
padding: 0;
}
h3 {
font-size: 1.3em;
line-height: 1.3em;
margin: 0 0 0.5em 0;
padding:0;
}
h4 {
font-size: 1.2em;
line-height: 1.3em;
margin: 0 0 0.25em 0;
padding: 0;
}
h5 {
font-size: 1.1em;
line-height: 1.3em;
margin: 0 0 0.25em 0;
padding: 0;
}
h6 {
font-size: 1em;
line-height: 1.3em;
margin: 0 0 0.25em 0;
padding: 0;
}
/* END HEADINGS */
/* TEXT */
p {
font-size: 1em;
margin: 0 0 1.5em 0;
padding: 0;
line-height:1.4em;
}
blockquote {
border-left: 10px solid #ddd;
margin-left: 10px;
}
pre {
font-family: monospace;
font-size: 1.0em;
}
strong, b {
font-weight: bold;
}
em, i {
font-style:italic;
}
code {
font-family: "Courier New", Courier, monospace;
font-size: 1em;
white-space: pre;
}
/* END TEXT */
/* LISTS */
#main ul {
line-height:1.4em;
margin: 0 0 1.5em 0;
padding: 0;
}
#main ul li {
margin: 0 0 0.25em 30px;
padding: 0;
}
ol {
font-size: 1.0em;
line-height: 1.4em;
margin: 0 0 1.5em 0;
padding: 0;
}
ol li {
font-size: 1.0em;
margin: 0 0 0.25em 30px;
padding: 0;
}
dl {
margin: 0 0 1.5em 0;
padding: 0;
line-height: 1.4em;
}
dl dt {
font-weight: bold;
margin: 0.25em 0 0.25em 0;
padding: 0;
}
dl dd {
margin: 0 0 0 30px;
padding: 0;
}
/* END LISTS */
/* TABLE */
table {
font-size: 1em;
margin: 0 0 1.5em 0;
padding: 0;
}
table caption {
font-weight: bold;
margin: 0 0 0 0;
padding: 0 0 1.5em 0;
}
th {
font-weight: bold;
text-align: left;
}
td {
font-size: 1em;
}
/* END TABLE */
hr {
display: none;
}
div.hr {
height: 1px;
margin: 1em 10px;
border-bottom: 1px dotted black;
}
/* END TYPOGRAPHY */ /* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */
/* FORM ELEMENTS */
form {
margin:0;
padding:0;
}
form div,
form p {
font-size: 1em;
margin: 0 0 1em 0;
padding: 0;
}
label {
font-weight: bold;
}
fieldset {
border: 1px solid #eee;
padding: 5px 10px;
margin: 0 0 1.5em 0;
}
fieldset legend {
color: #666;
font-size: 1.1em;
font-weight: bold;
margin: 0 0 0 0px;
padding: 0;
background-color: white;
}
* html fieldset legend {
margin: 0 0 10px -10px;
}
fieldset ul {
list-style: none;
margin: 0 0 1.5em 0;
padding: 0;
}
fieldset ul li {
list-style: none;
margin: 0 0 0.5em 0;
padding: 0;
}
input, select, textarea {
font-size:1em;
font-family: arial, helvetica, verdana, sans-serif;
margin: 0;
padding: 2px;
}
input, select {
vertical-align:middle;
}
textarea {
width: 200px;
height: 8em;
}
input.check {
border: none;
width: auto;
height: auto;
margin: 0;
}
input.radio {
border: none;
width: auto;
height: auto;
margin: 0;
}
input.file {
height: auto;
width: 250px;
}
input.readonly {
background-color: transparent;
border: none;
}
input.button {
width: 10em;
border:1px solid black;
background-color: #ddd;
}
input.image {
border: none;
width: auto;
height: auto;
}
form div.submit {
margin: 1em 0;
}
form div.submit input {
height: 2em;
width: 15em;
}
/* END FORM ELEMENTS */
/* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */
/* NAV BAR AT THE TOP AND ONE COLUMN OF CONTENT */
div#content {
width: 96%;
margin: 0;
padding: 1em 2%;
text-align: left;
}
div#main {
}
div#menu_horiz {
width: 100%;
text-align: left;
}
/* END CONTENT *//* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */
/* SITE SPECIFIC LAYOUT */
body {
margin: 0;
padding: 1em;
text-align: center;
}
div#pagewrapper {
margin: 0 auto;
max-width: 80em;
min-width: 60em;
padding: 0;
text-align: left;
}
#container {
position: relative;
margin: 0;
}
/* HEADER */
div#header {
margin: 0;
padding: 0;
height: 80px;
background: #385C72;
text-align: left;
}
div#header h1 a {
background: url(uploads/images/logo1.gif) no-repeat 0 12px;
display: block;
height: 80px;
text-indent: -700em;
width: 198px;
margin: 0;
padding: 0;
text-decoration:none;
}
/* END HEADER */
/* CONTENT */
div#content {
}
/* MAIN */
div#main {
}
/* END MAIN */
/* SUB */
div#sub {
}
/* END SUB */
/* END CONTENT */
/* FOOTER */
div#footer {
}
div#footer p {
font-size: 0.8em;
margin: 0;
padding: 15px;
text-align: center;
}
/* END FOOTER */
/* END LAYOUT */
div.breadcrumbs {
padding: 1em 0;
text-align: left;
font-size: 90%;
margin: 0 1em;
border-bottom: 1px dotted #000;
}
div.flags {
float: right;
width: 18px;
padding: 1em 0;
text-align: right;
margin: 0 1em 0 0;
}
div.left49 {
float: left;
width: 49%;
}
div.right49 {
float: right;
width: 49%;
text-align: right;
}/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */
/* The wrapper clears the floating elements of the menu */
#menuwrapper {
overflow: hidden;
background-color: #ECECEC;
border-bottom: 1px solid #C0C0C0;
width: 100%;
/* z-index:99;*/
}
/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li {
width: 200px;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0px;
padding: 0px;
}
#primary-nav ul {
position: absolute;
top: auto;
display: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
}
#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
/* Styling the basic apperance of the menu elements */
#primary-nav a {
display: block;
margin: 0px;
padding: 5px 10px;
text-decoration: none;
}
#primary-nav li a {
border-right: 1px solid #C0C0C0;
border-left: 1px solid #C0C0C0;
}
#primary-nav li li a {
border: 1px solid #C0C0C0;
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #ececec;
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
background-color: #C7C7C7;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent, #primary-nav ul li.menuparent:hover, #primary-nav ul li.menuparenth {
background-image: url(modules/MenuManager/images/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover, #primary-nav li.menuh, #primary-nav li.menuparenth, #primary-nav li.menuactiveh {
background-color: #E7AB0B;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
#primary-nav ul, #primary-nav li:hover ul, #primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul, #primary-nav li.menuparenth ul ul {
display: none;
}
#primary-nav li:hover ul, #primary-nav ul li:hover ul, #primary-nav ul ul li:hover ul,
#primary-nav li.menuparenth ul, #primary-nav ul li.menuparenth ul, #primary-nav ul ul li.menuparenth ul {
display: block;
}
/* IE Hacks */
#primary-nav li li {
float: left;
clear: both;
}
#primary-nav li li a {
height: 1%;
}
-->Mark
Re: floating image and css menu problem
i'm starting to think no one can put flash where the menu will touch it or any other drop downs... working on another thread with the same problem...Is this a flash issue?
moving the flash down, or in the other thread, over, enuf to get the flash out of the way of menus' is the only way around this...
sorry...
-
3dcandy
Re: floating image and css menu problem
Hi,
This is a known Flash problem, try setting wmode=transparent when you publish the Flash file...
Can't ensure this will work, but *should* help...
Also, it seems better with at least Flash Player 8+
Ade
This is a known Flash problem, try setting wmode=transparent when you publish the Flash file...
Can't ensure this will work, but *should* help...
Also, it seems better with at least Flash Player 8+
Ade
Re: floating image and css menu problem
Thanks for the help. After your posts I figurerd out what to search for. Changing flash to wmode=transparent worked in IE but not FF. This link http://www.communitymx.com/content/arti ... ?cid=E5141 descrbes the issue and a fix. The kicker is z-index has to be set.
Again Thanks for the help!
Mark
Again Thanks for the help!
Mark
Mark
Re: floating image and css menu problem
still not working in Firefox?
Re: floating image and css menu problem
Sadly no and I only have IE and FF so validating on other browsers will have to be a question answered by members of the forum. I think it will require adding z-index to the CSSMenu styles. This will have to be a project for the near future. I am pressed for time right now. Plus I do not know all I need to know about CSS and DIVs. With me it will be a hit and miss kind of thing. However the good news it that flash behind css menus is possible.
[EDIT] Ok so I gave up a little prematurely . I read an article about z-index at W3C and decided to try another option.
[THE FIX]
Add to
Add wmode="opaque" to
Thanks 3dcandy. There was an article the suggested problems if this was "transparent" and I did not want to press my luck.
To the stylesheet Layout CSSMenu Horiz 1C add
div#menu_horiz {
width: 100%;
text-align: left;
position:relative;
z-index:2;
}
I have only tested in FF1.5 IE6 and it seems ot workI would appreciate any help here.
Mark
[EDIT] Ok so I gave up a little prematurely . I read an article about z-index at W3C and decided to try another option.
[THE FIX]
Add to
Add wmode="opaque" to
Thanks 3dcandy. There was an article the suggested problems if this was "transparent" and I did not want to press my luck.
To the stylesheet Layout CSSMenu Horiz 1C add
div#menu_horiz {
width: 100%;
text-align: left;
position:relative;
z-index:2;
}
I have only tested in FF1.5 IE6 and it seems ot workI would appreciate any help here.
Mark
Last edited by dmgd on Thu Jul 13, 2006 3:17 pm, edited 1 time in total.
Mark
-
mediaguy
Re: [SOLUTION] floating image and css menu problem
I have been having fits with this as well. Fo rsome reason, nothing I did seemed to work. I have other sites with CSS and JS menus that work fine with FF. Another issue is that I am using SWFObject to load my flash and it does not have a way to add opaque to the embed, only the parameter. I tried other z-index changes but never with the position:relative. Your solution worked for me even with the wmode set to transparent.
Thanks for posting the solution!
Thanks for posting the solution!
-
3dcandy
Re: [SOLUTION] floating image and css menu problem
Have heard rumours that this has been made a little better now with Flash 9 player...
As I haven't had time to test, maybe you could test and force people to use V9???
As I haven't had time to test, maybe you could test and force people to use V9???


