CSS - Problems Displaying Css Using Dreamweaver
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 Similar TutorialsWhen using the following code, the "Design" preview does not display correctly within Dreamweaver MX 2004, but it does display correctly in all browsers. Does anyone know if this a problem with Dreamweaver or my CSS code. Update:- removing "position:absolute" from #infoPanel fixes the design preview problem, but this isn't really a solution, as I need to position absolutely. The only problem I've got is the design preview in Dreamweaver. I am happy with the final browser output, but the layout is awful within Dreamweaver. Thanks Matthew Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Welcome</title> <style type="text/css"> <!-- #infoPanel{ position:absolute; width:760px; height:100px; border-style:solid; border-width:1px; } #infoPanelDetails{ margin: 10px; position:absolute; width:480px; } #infoPanelLink{ margin:10px; position:absolute; width:240px; left:480px; text-align:right; } --> </style> </head> <body> <div id="infoPanel"> <div id="infoPanelDetails"> <p>Some detailed text here.</p> </div> <div id="infoPanelLink"> <p><a href="http://www.wherever.com" >www.wherever.com</a></p> </div> </div> </body> </html> Hi All, I've created the below style sheet for links on my site, but MS IE won't display the classes properly! In the first class "navlink" it displays ok except for the last cell in a table of 5 columns where no styling is applied! The second class "sidelink" is used to style side navigation links within div tags on a page, but the links appear as hyperlinks with no styling except color and the background highlight on hover does not expand to 100% of the containing div! only around the text. link to page: Click here Does anyone know what's up with this? as it all displays fine in Mozilla but not Ms IE. Thanks PHP Addict Code: A.sidenav:LINK { color:#FFFFFF; font-variant: small-caps; font-size: 85%; text-decoration: none; display: block; width: 100%; height: 100%; } A.sidenav:VISITED { color: #FFFFFF; } A.sidenav:HOVER { color: #FFF6BF; background-color:#00158C; text-decoration: none; } A.sidenav:ACTIVE { color: #FFF6BF; } I have been trying in vain to get div elements on a page to behave how i want them to. I have a list of items, in the middle of which i need to display some tablular information witha picture along side it. This i have managed to acieve fine, but i can't get the next <li> to start below these 2, it starts alongside and the wraps underneath. I have tried everything. Can anyone help? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- #wrapper{ font-family:Verdana, Arial, Helvetica, sans-serif; margin-left: 20px; width: 550px; font-size: 12px; line-height: 22px; letter-spacing: 0.5px; color: #666666; } #topimg { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px dotted #CCCCCC; text-align:left; display:block; } #secondimg { margin: 0 0 0 20px; text-align:left; display:block; } #bodyimg{ padding: 20px 0px 20px 20px; float:left; display:block; } #listtable{ padding-top: 20px; padding-bottom: 20px; float:left; font-size: 10px; letter-spacing: 0.5px; color: #891C46; list-style-type: none; line-height:18px; } #listtable li{ margin: 1px; padding: 1px; } #listtable div { margin: 1px; padding: 1px; background-color: #F7F7F7; } --> </style> <title>Carlton</title> </head> <body> <div id="wrapper"> <div id="topimg"> <img src="/carlton-newsite/img/planandbuy/planandbuy.gif" width="173" height="33"> </div> <div id="secondimg"> <img src="/carlton-newsite/img/planandbuy/thebasics.gif" width="133" height="23"> </div> <ul> <li>Cinema Advertising is available in weekly blocks starting on Fridays.</li> <li>It is possible to buy <em> guaranteed admissions</em> by TV region, <em> follow specific films</em> or <em> nominate individual screens</em>. </li> <li>The minimum time unit available is 5 seconds. Prices differ based on commercial length with indeces using 30” as a base: </li> <div id="listtable"> <table width="200" border="0" cellspacing="0" cellpadding="0" class="nobullet"> <tr> <td width="105"> <li> <div>5”</div> </li> <li>10”</li> <li> <div>20”</div> </li> <li>30”</li> <li> <div>40”</div> </li> <li>45”</li> <li> <div>50”</div> </li> <li>60”</li> <li> <div>90”</div> </li> </td> <td width="95"> <li> <div>.3”</div> </li> <li>.5”</li> <li> <div>.8”</div> </li> <li>.1.00”</li> <li> <div>.1.33”</div> </li> <li>.1.50”</li> <li> <div>.1.67”</div> </li> <li>.2.00”</li> <li> <div>.3.00”</div> </li> </td> </tr> </table> </div> <div id="bodyimg"> <img src="/carlton-newsite/img/digital_adver/satelite.jpg" width="220" height="182"> </div> <li>Cinema commercials are shown on 35mm film, it is easy to get your TV ad transferred by our production department. </li> <li>Lead times from booking to getting on screen are 3 weeks, although CSA’s <em> Early Booking Incentive</em> guarantees extra value if you can book your campaign 6 weeks in advance of start date. </li> <li>Cinema Advertising Association <em> cinema buying guidelines</em> ensure your campaign meets industry agreed standards. </li> </ul> </div> </body> </html> 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? 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 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 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 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; } I have all pages that follow a CSS Rule. These are Dev Boxes that I created for my site. One of the text on one of the pages is 1700 pixels height the others are only 700. When I created a rule for all pages but when I added the text on the one with 1700 pixels it stretched out all the boxes on all other pages as well. I want to break that one from the others so that it does not format all my pages like that one. How do I do it. I do I keep the CSS code style but on that one in particular change the rule to only allow that one to be 1700 pixels long. Basically I don't want to have to recode the CSS page but I want that particular code to be just for that one page and keep the others with the 700 pixels height. Please give me a simple explanation on how to break the rule on that page so that I can manually adjust it for that one page. thanks 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 Well this isn't too much of a problem basically my form displays one way in dreamweaver and another when I preview the site any idea why its pretty annoying. heres how it looks in dreamweaver and heres it in a browser Hi, I have created a accordion menu using a spry widget built into Dreamweaver CS3. However I want to amend this so that the menu is collapsed until the user clicks on a category. Do I have to amend the CSS or the javascript to make it collapsed to begin with? Any help would be appericated. Thanks Gary 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 Hello I am a Novice in web design that is trying to make his way. I am build a website for my company and trying to make it compatible with many devices. I have chosen to Use html and css. This is my issue. I have a side bar menu (nav) and I have a div (menuebar) set to 125 by 500px css property's: Height, width, margin top, margin bottom, float:left Then i have another div inside that one use for my LINK or Button. div (menulink) set to 110 x 28px css property's: Height, width,Padding : Left5px, Right 5px top 2px and bottom 2px , Font Ariel. I want this div (menulink) to highlight on a mouse over or hover the entire div like this website has there colorful menu bar. w w w DOT entheosweb DOT com/dreamweaver/default.asp the bar i am talking about starts with teal, green... ect If you notice you can select the text with in that rollover. so when I use a rollover i cant see any option to do that. Now I have learn how to do a " a hover" css with text links but it dose not hightlight the whole div container. I have tried a behavior on the div tag and that works but dose not disappear on mouse out. I have tried many combinations of multiple behaviors and single combinations with all the option with in them. No such luck.... I will thank any one advance who can help me with this. Ps i don't want to use rollovers because of how big the web site is even with PS actions set up to speed up the process of editing each roll over img. 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 Should I or should I not learn more about coding when I build my page using Dreamweaver anyways and it looks and functions fine. I am stuck wit the issue of doc types in my pages which has prevented me to make a center middle design page and had to remove the doc type code on all my websites so that the page content will end up at centre middle. The only solution I have been offered was to use CSS but I have so many old sites that converting the sites I have built to CSS would be too time consuming and not worth it. Anyone have any other better ideas? I am developing a web site, panopticinsight dot com. The header/banner looks fine in Firefox. In IE7 and Opera, the H2 subtitle is left aligned over the globe image. In IE6 content jumps outside of container. Anyone know why there is a shift, and what I can do about it? Style sheet code pasted below: Code: body { width:800px; font:0.83em/1.4em Tahoma, Geneva, sans-serif; color:#CBD4E3; background:#000 url(images/body_bg.gif) repeat-y top center; letter-spacing:1px; margin:0 auto; } h1,h2,h3,h4,h5,h6 { font-family:"Times New Roman", Times, serif; font-style:italic; font-weight:bold; color:#e9df55; background-color:#000; } h2 { font-size:2em; } h3 { font-size:1.5em; } h4 { font-size:1.25em; } a:link { color:#8090AC; text-decoration:none; } a:visited { color:#B17F6C; text-decoration:none; } a:hover { color:#E9DF55; text-decoration:underline; } a:active { color:#E9DF55; text-decoration:none; } #container { width:760px; margin:0 auto; } #header { height:200px; width:760px; margin:0; padding:0; } #banner { height:100%; width:100%; color:#cbd4e3; background:#000 url(images/header_bg.jpg) no-repeat top left; margin:0 auto; padding:0; } #banner h1 { font-size:400%; color:#CBD4E3; background-color:transparent; float:left; display:inline; margin:0; padding:70px 0 70px 280px; } #banner h2 { font-size: 12pt; color: #e9df55; background-color:transparent; text-indent: 200pt; vertical-align: text-bottom; } navigate{ color : #105BAC; background-color : transparent; height : 20px; font-size: 100%; border-top : 1px solid #999999; } #navigate ul { list-style-type: none; margin-top: 0px; margin-bottom: 0px; margin-left: 150px; margin-right: 0px; padding: 2px 0 0 0; } #navigate ul li { display: inline; } td { font-family: Arial, Helvetica, sans-serif; } th { font-family: Arial, Helvetica, sans-serif; } p { font-size: 14px; color: #FFFFFF; left: 50px; right: 50px; } #main { width: 660px; padding-right: 50px; padding-left: 50px; } #footer { font-family: "Times New Roman", Times, serif; font-size: 9px; color: #666666; height: 100px; width: 760px; vertical-align: text-bottom; text-align: center; } #SplashImage { float: left; } .image-left { clear: none; margin-bottom: 10px; float: left; margin-right: 20px; margin-left: 10px; } .image-right { clear: none; margin-bottom: 10px; margin-left: 10px; float: right; } Hi, I'm trying to write a simple website but I can't get it to run correctly in Internet Explorer. It looks fine in Firefox and Safari, but in IE none of the CSS is used, it looks like a regular html document. I've run the Validations for both files and they pass (aside from the html file throwing errors about the css styles). Here is my code: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>TITLE</title> <link rel="stylesheet" type="text/css" href="style.css"> <!-- Date: 2009-08-10 --> </head> <body bgcolor="#D5D5D5"> <center> <banner> <img src="toptile.jpg" height="150px" width="100%" alt="topbanner"> </banner> <br> <logo> <img src="bannerlogo.png" alt="logo"></logo> <navbar> <img src="navbar.png" width="100%" height="650px" alt="background"> </navbar> <blackbar><img src="black.png" width="100%" height="20px" alt="blackbox"></blackbar> <br> <middle> <table border="0" width="800px" cellpadding="10" bgcolor="#DBFBFF"> <tr> <td width="50%" valign="top"> <br><br><br><br><br> <center> Coming Soon... </center> </td> </tr> </table> </middle> </center> </body> </html> and the CSS: Code: logo { position:absolute; display:block; margin-left: auto; margin-right: auto; top:10px; width:100%; z-index:3; } banner { position:absolute; top:-10px; left:-10px; right:0px; z-index:2; } middle { position:absolute; display:block; top:100px; margin-left: auto; margin-right: auto; width:100%; z-index:1; } navbar { position:absolute; top:140px; left:0px; right:0px; z-index:-1; } blackbar { position:absolute; top:140px; left:0px; right:0px; z-index:4; } I realize I'm probably not using all the best practices, but it displays fine on everything but IE. Can someone please help me out here. Thanks |