CSS - Dreamweaver Layer Problem
Hi everyone,
I am having a very difficult problem using Dreamweaver and I would be very grateful for any advice given. I recently created a simple website using layers and when I previewed it, it looked great and it had no reported browser errors. I had several people view it and only one of my friends had trouble seeing it. He said that the layers were out of position and sometimes overlaped. We both were using Explorer 6.0. The only difference between our computers is that he has a 21" monitor while I have a 17". Would that effect the web page design? Why are the layers not positioning correctly? If anyone needs to view the website it can be seen at http://sky.prohosting.com/lovecare Please help me! Thanks, Steve Similar TutorialsI've been re-designing my site in valid XHTML 1.1 and CSS, and I've hit a bit of a problem.... Everything works perfectly in Firefox, but IE isn't liking things at all. The navbar at the left should stretch all the way to the bottom image, but it isnt having it. I've tried messing with it for about an hour now, and can't fix it.... The page can be found at URL and the stylesheet at URL Oh, and I know the colours are all messed up, I'll fix that later :P Edit: Fixed bbCode I'm sure all of you have stumbled onto this at some point if you use Macromedia Dreamweaver. You're working on a CSS-driven layout and it looks perfect in multiple web browsers, but in the actual Dreamweaver design edit mode the page appears garbled and elements are out of place or you can't even see them. While it's not really a problem for you to update and work with the site, it would certainly be difficult for someone not familiar with it to change content and make updates. Does anyone know of a plug-in that would resolve this problem? Or perhaps does someone know what attributes or elements most often cause the problem in Dreamweaver? Hi, I have been working on a project for a friend and all was working well in IE. I tested the site in Netscape and Opera and found that the CSS positioning i was using (DIVs) caused inconsistent layout accross the browsers. I used absolute positioning instead of relative, which seemed to solve all my problems.....not so. Now, for some reason, the pop-up menu appears behind the main content layer. I am quite new to using CSS for layout so forgive me if the answer to my problem is simple. Google (my usual saviour) proved to be of little help. Any help would be welcome, thanks. Dunc I am trying to put left and right shadows on a layer, I am doing this by using two alternatively padded layers on top of each other. This code does that: PHP Code: #maincontent{ background-image: url(images/layout/contentpanel/contentpanel_background.gif); background-repeat: repeat-y; background-position: left; border: 0px !important; padding-left: 30px; } #maincontent_inner{ background-image: url(images/layout/contentpanel/contentpanel_backgroundright.gif); background-repeat: repeat-y; background-position: right; border: 0px !important; padding-right: 30px; } PHP Code: <div id="hold_content"> <div id="maincontent"> <div id="maincontent_inner"><? include("includes/homepageloremipsum.php")?> </div><!-- End maincontent_inner --> </div><!-- End maincontent --> </div> Now, in firefox the shadow images work fine, however, on IE they start about 2 inches down. However, after scrolling up and down the page they start at the top so this is obviously some kind of layering problem. I can't work out what though. Any ideas? (never mind, i dont need layers anyways) Sorry, pls delete this! Hi, the foolowing code is highlighting some options that I have in a layer sitting on top of a tablet type object. In IE the options are displayed 'inside' the tablet. In Firefox they are spread out down the page into my footer, any ideas what I can add to contain them within the tablet layer? PHP Code: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; left: 1px; top: 188px; visibility:visible" id="layer2"> <div style="position: absolute; width: 100px; height: 24px; z-index: 1; left: 46px; top: 35px; visibility:visible; right:0; bottom:0" id="layer3"> <p align="center"><font color="#4E261B"><b> <span style="font-size: 11pt"> <a href="home" style="text-decoration: none"> <font color="#4E261B">Home</font></a></span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">About US</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">User Register</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">User Log-in</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">Supplier Log-in</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">Join Head2Toe</span></b></font></div> <img border="0" src="images/bridetablet1.bmp" width="190" height="302"></div> <p></div> <!-- to clear footer --> </div><!-- end outer div --> Layer 2 is the tablet, layer 3 is the text on top. if you need anything else, please let me know. Thanks, G Hello, someone call tell me why this code didnt work? i try to put some flash banner in nested divs using z-index and its not working the flash div is above the higher div. i am tryin to href the flash banner: Code: <asp:FormView DataSourceID="SqlDataSource20" runat="server"> <ItemTemplate> <div style="width:728px; height:90px; position:relative; padding:0px; margin:0px; z-index:100; cursor:pointer; display:block; background-color:Lime;" onclick="window.new('<%#Eval("destUrl") %>', '_blank');"> <div style="width:728px; height:90px; position:absolute; left:0px; top:0px; padding:0px; margin:0px; z-index:-1; display:block;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="728" height="90"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="<%#Eval("bannerSrc") %>" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="wmode" value="opaque" /> </object> </div> </div> </ItemTemplate> </asp:FormView> I have a rule called #MainContent. Now I want to change this rule for just one page so I duplicate it but don't add it to the global style sheet but declare the rule for this page only. However this doesnt work the div still changes based on the #MainContent rule in the global css file Hello, I have a table inside a layer (position: absolute). I want to apply onMouseOut event to my layer, so when I roll my mouse outside of the layer it gives an alert message. Well, it does give an alert when I move my out outside of the layer. But it also alerts when I move my mouse over the table which is inside my layer. I'm sure it's something simple, but I'm struggling with it for hours already and can't find any solution. Code below. What am I doing wrong? <div style="position:relative; z-index:1;"> <div style="position: absolute; z-index:2; background-color:#009900; padding:10px; width: 200px; height:200px;" onMouseOut="alert('hey');"> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td>table</td> </tr> </table> </div> </div> Thanks so much! My website (OPM) uses css for all the layout. Sometimes, when I load a new page within the website, the entire webpage appears nested within one of the layers. When I reload the page, this effect disappears right away or after a few reloads. It appears about 10% of the time and occurs in several different browsers (i.e. Firefox, IE). Nested webpage error URL Normal page URL I don't know why this is happening, especially since it's only part of time. Please help! Thank you, Misha I've seen a fix for this online before, but I can't seem to find it now. Basically I've got the following layer declartion: HTML Code _NOT_ php PHP Code: <div style=" color: black; font-size: 10pt; font-family: arial; text-align: center; visibility: hidden; display: block; position: absolute; z-index: 3; top: 115px" id="default"> When I make this layer visible it shows up in the exact position I want it to in most browsers, but in Mozilla it is 10 pixels to low. How can I get this layer to show up on Mozilla in the same pos as IE? Should I use javascript to adjust that "top" to 125 if its Mozilla? Or is there a CSS way to resolve this. Hello I thought I could make it, but what I got so far is jumping over the screen, so please a need some help. I got a image with two transparant shapes. Behind those shapes I would like to show 2 other images. |-------1-------| | |-----| |----| | | |...2..| |..3..| | | |____| |____| | |_____________| Image 1 should be on top z-Index Image 2 should under image 1, a part of the image should be visible. Image 3 should under image 1, a part of the image should be visible. Now the issue, image 2 and 3 should be dynamically replaceable. Please help Thanks Need guidance on how to set up CSS. Thanks Hi all! I've been teaching myself web-design in my spare time for a while, and I've got most of the basics down (I think!). I have a problem. I was using Dreamweaver cs3 and I put a vertical spry menu into my page - All was fine. Cue update to cs5. No I know that this shouldn't have effected anything, but something has changed, and now my sub menus all appear UNDER the rest of the elements on the page. I haven't really used z-index much before. I have tinkered with it a little, but it didn't seem to change anything. I am now stumped. This problem seems to occur across all browsers. Can anyone help? Hey, im sorry if this has allrdy been covered I have created a website in dream weaver cs3, i upload it everything works bar back ground images in tables. The url is gepro.oxyhost.com all help greatly appreciated thx guys Hi everyone. I am completely new to web design. I am using Dreamweaver 8 pro. I have found out that I like the background image feature to layers very much. It is very much better than tables. Unfortunately, I can't find a way to have layers be centered in reference to the browser (The way I can align tables). Is there any way to do this? Please help. Thanks, Newbie hi everyone, i designed my first site with dremaweaver 3 but had problems with browser compatability. people have been telling me i should use css now as it's better so which version of dreamweaver should i be using now? thank you Hi, I'm trying to create a menu bar using CSS (I'm not sure if this is the best way to do it. Maybe I should be using frames for this menu bar so I'm not constantly copying and pasting code from page to page?) Anyway, my problem is that everything appears fine when I view the page in the browser using F12 (this creates a temporary file). But when I try to view index.htm by double clicking on it, the CSS style hasn't been applied to the text at all. I have spent hours on this to no avail. Can someone please please help? thanks, Jean Hi there, Wondering if you can help me ... I have a site that was coded for me and when i open up the index.html pages in code and design view in Dreamweaver - the items in the sidebar (coded with css and using the ul and li tags) don't show up .... allowing me to only edit the text in code view and not design view. When previewing it in browser it is fine. I am a visual person so would really like to be able to see the text/images and elements in design view. perhaps small code is missing? or settings in dreamweaver... i have tried everything and can;t find Please help! Thanks Code: <div id="sidebar" class='sidebar-home'> <ul class="sidebar-list"> <li class="first"> <h5 class="sidebar-title">Recent News</h5> <ul class="simple-list"> <li class="first"><div class="simple-list-heading">Mar 4, 2010</div>Soltoro Acquires The Lupita Mine Property and Plans To Drill at Victoria Project</li> <li><div class="simple-list-heading">Feb 16, 2010</div>Soltoro Completes Las Bolas Mine Area Resource Drilling & Returns 12 Metres of 220 gpt Silver in Highway Zone</li> <li class="last"><div class="simple-list-heading">Feb 12, 2010</div>Soltoro Completes $2,350,250 Financing</li> <li class="read-more"><a href="news/" title="More News">... more news</a></li> </ul> </li> <li> <h5 class="sidebar-title">Events</h5> <ul class="simple-list"> <li class="first"><div class="simple-list-heading">June 6-8, 2010</div>World Resource Investment Conference<br/>Vancouver, BC</li> <li class="last"><div class="simple-list-heading">September 25-26, 2010</div>Toronto Resource Investment Conference<br/>Toronto, ON</li> </ul> </li> <li> <h5 class="sidebar-title">Archive Projects</h5> <ul class="sidebar-gallery"> <li><a href="projects/el-rayo.html" title="El Rayo Project"><img src="images/active-projects-el-rayo.jpg" alt="El Rayo" /></a></li> <li class="sidebar-gallery-r"><a href="projects/quila.html" title="Quila Project"><img src="images/active-projects-quila.jpg" alt="Quila" /></a></li> <li class="sidebar-gallery-bottom"><a href="projects/victoria.html" title="Victoria Project"><img src="images/active-projects-victoria.jpg" alt="Victoria" /></a></li> <li class="sidebar-gallery-r sidebar-gallery-bottom"><img src="images/active-projects-click-images.jpg" alt="Click Images" /></li> </ul> </li> </ul> </div> the CSS Code: .sidebar-list { width:100%; } #sidebar a { color:#421400; text-decoration:none; } #sidebar a:hover { color:#f79120; text-decoration:underline; } h5.sidebar-title { color:#421400; font-size:25px; padding-bottom:15px; width:100%; } .sub-caption { padding-bottom:3px !important; } .sidebar-title-sub-caption { float:left; font-size:14px; width:100%; } .sidebar-title-sub-caption img { padding-left:7px; } .sidebar-list li { float:left; border-bottom:1px solid #421400; padding:20px 0 25px; width:284px; } .sidebar-list li.first { padding-top:0; } ul.simple-list { padding-left:20px; width:264px; } ul.simple-list li { border-bottom:1px dotted #421400 !important; padding:18px 0px; width:100%; } ul.simple-list li.first { padding-top:0; } ul.simple-list li.last { padding:18px 0 0 0 !important; border-bottom:none !important; } .simple-list-heading { float:left; font-weight:bold; width:100%; } .simple-list li.read-more { border-bottom:none !important; font-weight:bold; text-align:right; padding:10px 0 0 0; } .sidebar-gallery { width:100%; } .sidebar-gallery li { display:inline; border:none; padding:0 20px 20px 0; width:132px; } .sidebar-gallery img { border:1px solid #421400; } .sidebar-gallery li.sidebar-gallery-r { padding-right:0; } .sidebar-gallery li.sidebar-gallery-bottom { padding-bottom:0; } .sidebar-gallery span { float:left; font-weight:bold; width:100%; text-align:center; } ul.full-picture-list { padding-bottom:20px; width:100%; } .full-picture-list li { border:none !important; padding-bottom:0 !important; } .full-list-content { float:left; display:inline; border-bottom:1px dotted #421400; margin-left:20px; padding:10px 0 10px 0; width:264px; } ul.photo-gallery { width:100%; } .photo-gallery li { display:inline; border:none !important; padding:0 10px 10px 0; width:61px; } .photo-gallery img { border:1px solid #421400; } .photo-gallery li.last { padding-right:0; } |