CSS - Url Path Problem
Hi. Where does a .css file expect to find an image when a forward slash precedes the link?
I was trying to duplicate someone else's web page and the original .css file had this line: background: transparent url(/pics/h1.gif) no-repeat top left; I assumed this meant the .css file (in /css) looks in /css/pics for it, but the pic isn't displayed (neither in mozilla nor IE). However, if I change the line to background: transparent url(pics/h1.gif) no-repeat top left; the pics show up fine in both mozilla and IE. I can't find an explanation for this difference and wonder if anyone can explain it. In BOTH versions of this .css file, the other style codes are displayed, meaning that the .htm file was able to locate the .css file. Thanks Stylish Similar TutorialsI am building a template page, this has the header only stored in the page, then a php page is loaded from a different file as the body of the page, how do i set a full path to my css style sheet via the template page: i.e. http://mysite.com/styles/mycss.css for some reason this doesn't work! I can't set the path using '../../styles/mycss.css' because the template file will be stored in many different depths of my site, SO: How can i set some sort of path to the css file? any help will be appreciated! Cheers, Alex. Hey, I think i just need someone else to look at this for me. I've been coding all day and would probably be able to figure this out if I just went to bed and did it tomorrow. If you roll over an image that's alson an anchor at www.deeperdevotion.com/wp, you'll find that it places a background-color or underline or both on it. The thing is, I can't find the code in my CSS that's causing me the trouble. my css is located at www.deeperdevotion.com/wp/wp-content/themes/dd/styles/101106.css Thanks. Hello. I am new at css and web design so if these are easy problems please excuse. First of all, the website url http://www.onlinecasinoboss.com In Firefox, the unordered lists <ul> in the left column do not display correctly. The left margin is way too big. I'm not sure why, please look at the page in IE to see what I want it to look like. And in Internet Explorer, the spacing between my top image, header bar, and main page is screwy. There should be no space between the header image and header bar (the flags are in this area). Also there should only be 2px spacing between the header and the main page, however it appears there is atleast 24px there. Again please refer to the page in FF to see what I want it to look like. I like css, and have decided to pursue my first design in css based off of the many professional designers reconmendations and reviews. But I must say it is a major headache to deal with cross-browser/platform display problems. And what professional designer wants to rely on 'css-hacks' when producing a product for a major vender. Just beginner bitching. Thanks for the help! Hello everyone, I am hoping I could get some help on this. I'm the new Marketing guy at this company. One of my duties is to fix an issue with our website which was built by the last guy to sit in this chair. I may not know how to build a proper webpage, but this guy knew exactly how not to do it and ran with just that. So, the issue lies within this example page: tinyurl.com/rediculouswebsite The footer ends up under-lapping the table when viewed in IE (when not in compatibility mode) and Firefox. I know this is a ridiculously constructed site, I just need to fix this one problem and be done with web development forever. High fives and scotch from my boss very well may ensue. Thank you all very much. I am currently trying to build a website for a church, and have run into a little css coding problem: It seems as if the browser is not interpreting how I see the CSS code to lay out on the page (common mistake I'm sure). I know a lot of the problems I am having comes from the height of my id's. If you take a look at "sci.tamucc.edu/~ksnapka/Website/Home/index.php" , the blue-bordered box is my "bodyWrap" css id. I am wanting this to expand to 100% of its contents inside the div container. If you look under some of the pages under "Our Faith in Action", I believe these work fine because I am using text inside of the bodyWrap container instead of other div containers nested in bodyWrap. The display on the home page actually looks better on IE, so I'm also not sure why firefox sets the height of that contained to 0 (I assume for some reason it sees that the container is empty since it just has other divs located inside of it?) The CSS code is on "sci.tamucc.edu/~ksnapka/Website/CSS/csTemplates.css" Any help is greatly appreciated Thank you in advance. *just moved this from the html forum. Didnt see this one at first.* Ok. So I have been reworking my company's website and have recently came upon a problem. Originally when I was coding, I was using Chrome. I kept checking my progress in Safari, IE8, Firefox, and Opera (or so I thought), and I never had problems. Today when showing my boss, he opened it in IE6 and it looked like crap. Came back to my desk and opened in IE8 and all the divs are screwed up. It looks perfect in the other browsers, just IE. Anyone give me a tip, or help out? Id appreciate it. Been beating my head against a wall trying to figure it out. FYI, none of the links work yet. I am basing this off of "fixed header and footer" code I found he http://limpid.nl/lab/css/fixed/header-and-footer Here is my site: http://margraphics.com/NewSite/History.php html: Code: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>MAR Graphics - History</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <link rel="stylesheet" type="text/css" href="Images/Style.css" /> <meta name = "keywords" content="printing services, brochure printing, book printing, post card printing, printing, digital printing, business card printing, color printing, poster printing, commercial printing, printing company, printing equipment, catalog printing, magazine printing, label printing, brochure printer, book printer, post card printer, business card printer, poster printer, Catalog printer, Magazine printer, Label printer, U-seal, useal, integrated label, integrated card, interplast, business forms, pressure seal, unit sets, manifold forms, business form, cut sheet, cut sheets, continuous forms, labels, label, form/label combinations, digital printing, docutech, on demand printing, commercial printing, direct mail, commercial printing, mailing services, print, forms, documents, printing, variable imaging, one-to-one marketing, personalization, handbooks, manuals, school handbooks, binders, inkjet, barcodes" /> </head> <body> <div id="Header" class="Header"> <div id="fullheader"> </div> <div id="HeaderPane" class="HeaderPane"> <a href="index.php"> <img src="Images/MARlogo.png" alt="MARLogo" border="0" style="position: absolute; left: 134; top: 9;" /> </a> <div id="Address" style="position: absolute; right: 9; top: 7;" class=" AddressText"> 523 South Meyer Avenue <br /> Valmeyer, IL 62295 <br /> 618-935-2111 <br /> 800-851-4460 </div> </div> </div> <div id="footer"> <div id="NavPaneFade" class="NavPaneFade"> </div> <div id="NavPane" class="NavPane"> <div id="About" style="position: absolute; left: 95; top: 7;" class=" NavPaneText"> A little about us ... <img src="Images/Header-Red.png" alt="Red Header Bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="History.php">History</a> <br /> <a href="News.php">News</a> <br /> <a href="Equipment.php">Equipment</a> </div> <div id="NavPaneWrapper"> <div id="NavPaneContainer"> <div id="What" style="top: 7;" class=" NavPaneText"> What we offer ... <img src="Images/Header-Green.png" alt="Green Header Bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="Direct.php">Direct Mailing</a> <br /> <a href="Integrated.php">Integrated Cards/Labels</a> <br /> <a href="Variable.php">variable/Digital Imaging</a> <br /> <a href="Forms.php">Forms</a> <br /> <a href="Labels.php">Labels</a> <br /> <a href="Warehousing.php">Warehousing</a> <br /> <a href="Seku.php">Sekur Seal</a> </div> </div> </div> <div id="Little" style="position: absolute; right: 95; top: 7;" class=" NavPaneText"> A little bit of everything else ... <img src="Images/Header-Blue.png" alt="Blue Header bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="Contact.php">Contact Us</a> <br /> <a href="FAQ.php">FAQ</a> <br /> <a href="OnlineOrder.php">Web ordering</a> </div> <div class="prop"></div> <br /> <div class="clear"></div> </div> <div id="fullFooter" class="Footer"> <div id="SiteMap" style="position: absolute; left: 134; top: 4;"> <a href="_blank" class="FooterText"> Home </a> | <a href="_blank" class="FooterText"> Sitemap </a> | <a href="_blank" class="FooterText"> Privacy </a> | <a href="_blank" class="FooterText"> Terms </a> </div> <div id="Copyright" style="position: absolute; right: 134; top: 10;" class=" FooterText"> <span class="FooterText"> Copyright 2010 MAR Graphics </span> </div> <a href="http://www.facebook.com/pages/Valmeyer-IL/MAR-Graphics/326577303828" target="_blank"> <img src="Images/Facebook.png" alt="Facebook" border="0" style="position: absolute; right: 100; top: 3;" /> </a> </div> </div> <div id="Content"> <div class="Rounded-Top"> <div class="Rounded-Bottom"> <div class="Rounded-Left"> <div class="Rounded-Right"> <div class="Rounded-BottomLeft"> <div class="Rounded-BottomRight"> <div class="Rounded-TopLeft"> <div class="Rounded-TopRight"> <dl class="ContentPaneHeader"> <dt>Now celebrating our 49th year of providing print solutions to distributors/brokers nationwide!</dt> <dd class="ContentPaneContent"> <table width="100%" border="0" cellspacing="4"> <tr> <td width="81%" height="133" class="ContentPaneContent"> In March of 1961, Myron A. Roever started a printing company in a garage in East St. Louis, IL. Almost 50 years later, MAR Graphics continues to provide printing services to brokers nationwide. Through it all, we have prided ourselves in offering high quality and timely delivery. Now, in the 21st century, we continue to maintain that quality and speed in every product line we offer. </td> <td width="19%" height="133"> <img src="Images/marm1.jpg" width="204" height="129" alt="Myron Roever"/> </td> </tr> </table> <table width="100%" border="0" cellspacing="4"> <tr> <td width="18%" height="152"> <img src="Images/marm2.jpg" width="222" height="148" alt="Printing Press"/> </td> <td width="82%" height="152" class="ContentPaneContent"> MAR Graphics began as a unit set manufacturer under the name MAR Business Forms almost 50 years ago. In 1994, we changed our name to MAR Graphics to better reflect the products and services we now offer. Over the years, we have added other capabilities to our wide selection of web and sheet-fed presses, including flexographic label printing and digital printing. We now offer direct mail and commercial printing capabilities that expand the product mix we offer to the network of business printing distributors that we supply. </td> </tr> </table> <table width="100%" border="0" cellspacing="4"> <tr> <td width="75%" height="144" class="ContentPaneContent"> MAR Graphics is located in Valmeyer, Illinois, just outside St. Louis, Missouri. We offer a wide variety of printed products to forms distributors nationwide. MAR Graphics operates 14, 17, 22 and 28 inch presses capable of printing up to 10 colors, and our extensive digital imaging and bindery departments offers a multitude of value added features that make our documents and forms stand out from the rest. However, our most valuable resource is our staff of experienced and dedicated employees, who work hard to produce a high quality product in a fast and efficient manner. </td> <td width="25%" height="144"> <img src="Images/buildingfromair.JPG" width="210" height="140" alt="MAR at present"/> </td> </tr> </table> </dd> </dl> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-11509100-1"); pageTracker._trackPageview(); } catch(err) {} </script> </div> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> css: Code: body { padding-bottom: 280px; padding-left: 20px; padding-right: 20px; padding-top: 130px; background-color: #F3F3F3; } div#header { height: 110px; position: absolute; top: 0; left: 0; width: 100%; } div#footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 280px; bottom: 0px; } @media Screen { BODY > DIV#header { position: fixed } BODY > DIV#footer { position: fixed } } * HTML BODY { overflow": hidden } * HTML DIV#content { height: 100%; overflow: auto; } #fullheader { height: 20px; position: absolute; top: 0; width: 100%; background-color: #F3F3F3; } #HeaderPane { background-image: url(Blue-Bar.png); background-repeat: repeat-x; height: 90px; position: absolute; top: 20px; width: 100%; } #NavPane { height: 240px; position: absolute; bottom: 20px; width: 100%; background-color: #3F3F3F; } #NavPaneFade { background-image: url(FadetoTop.png); background-repeat: repeat-x; position: absolute; top: 10px; width: 100%; } #NavPaneWrapper { right: 50%; position: absolute; top: 7px; } #NavPaneContainer { left: 50%; position: relative; } #fullfooter { height: 30px; position: absolute; bottom: 0; width: 100%; background-color: #F3F3F3; border-top: thick; border-top-color: #3F3F3F; border-top-style: solid; } .AddressText{ font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #f7f5f0; font-weight: bolder; text-decoration :none; } .NavPaneText { font-family: Arial, Helvetica, sans-serif; font-size: 16.5px; color: #F3F3F3; font-weight: bolder; text-decoration :none; } .FooterText { font-family: Arial, Helvetica, sans-serif; font-size: 9px; color: #3F3F3F; font-weight: normal; text-decoration:none; } a:link { color: #F3F3F3; text-decoration:none; } a:visited { color: #c8c8c8; text-decoration:none; } a:hover { color: #F3F3F3; text-decoration:none; } a:active { color: #F3F3F3; text-decoration:none; } #fullFooter a:link { color: #3F3F3F; text-decoration:none; } #fullFooter a:visited { color: #3F3F3F; text-decoration:none; } #fullFooter a:hover { color: #3F3F3F; text-decoration:none; } #fullFooter a:active { color: #3F3F3F; text-decoration:none; } .ContentPaneHeader { font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #075fa3; font-weight: 900; } .ContentPaneSubHeader { font-family: Arial, Helvetica, sans-serif; font-size: 17px; color: #5caf70; font-weight: 900; } .ContentPaneContent { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #3F3F3F; font-weight: 700; } /* Creating the 'notepad' look */ .Rounded-Top { background: url(Rounded-Dot.png) 0 0 repeat-x; background-color: #f1f0ec; overflow: auto; } .Rounded-Bottom { background: url(Rounded-Dot.png) 0 100% repeat-x } .Rounded-Left { background: url(Rounded-Dot.png) 0 0 repeat-y } .Rounded-Right { background: url(Rounded-Dot.png) 100% 0 repeat-y } .Rounded-BottomLeft { background: url(Rounded-BottomLeft.png) 0 100% no-repeat } .Rounded-BottomRight { background: url(Rounded-BottomRight.png) 100% 100% no-repeat } .Rounded-TopLeft { background: url(Rounded-Topleft.png) 0 0 no-repeat } .Rounded-TopRight { background: url(Rounded-TopRight.png) 100% 0 no-repeat; padding-left: 20px; padding-right: 30px; padding-top: 40px; padding-bottom: 30px; } Hello, I'm new here and to CSS too. I've tried to fix this bug I had for a while, but haven't found any decent answers. My problem resolves around this page : http://www.dessinsdrummond.com/house_plans_collection.html In IE, the page seems to appear correctly, however, in Firefox, the white DIV doesn't follow the content of my page, thus the layout doesn't appear very well... I'm guessing it is because the float property is set... I wonder if there is any ways to fix this problem. Thanks! Hi all...I am simply trying to create a header (colored bar). Every thing is fine, even in IE 8 but when it comes to IE 6, the bar does not appears. The code is simple CSS code is Code: #css { position:absolute; top:0px; height:30px; right:0%; left:0%; background-color:#805670; border-style:solid; border-width:thin; border-color:#805670; padding-top:12px; } and I have just added this line in my .php page Code: <div id="mybio"></div> What can be the problem?? Here is the webpage I am working on: http://sulley.dm.ucf.edu/~ebuccianti/iesucks/ As you can see, I have three different DIVs here, the yellow, then the orange, then another yellow. The first yellow is supposed to stop at the same vertical point as the "websites" image. It works fine in Firefox and Opera, but if you view it in Internet Explorer, you will see that the first yellow goes on a little longer than it is supposed to. What can I do to fix this? Here is the CSS stylesheet I used: http://sulley.dm.ucf.edu/~ebuccianti/iesucks/includes/style.css I've added a border around my exiting web sites main interface page (all the content gets generated via php inside this page). But I'm having two probelms with the <div> structure that are driving me mad. I've moved all the styles inline and I've taken out almost all the php to make the file more readable. I have two points of confusion. 1) Why is the lower part of the border showing outside the container with the background. 2) How do I get the side parts of the border to fill the entire side. I googled this and have given all the containing div's heights, but every time I give these elemnts height other than the size of the image in the background they shrink to about 20 pixels. Code: Thanks for any help. You can see the real web page at www.greystackcellars.com <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php print $meta_title ?></title> <style> .HeadLine { clear:both; background-color: #8c8170; height: 25px; text-align: center; vertical-align: middle; padding-top: 7px; color: #FFFF99; font-size: 14px; } .Bottom { COLOR: #333333; font-size: 10px; text-align: center; clear: both; background-color: #8C8170; width: 820; height: 25px; padding-top: 7px; } </style> </head> <body style="margin:0; padding:0; height:100%;" > <div ID="Container" style="border: solid #8C8170 2px; margin: 0 auto; width: 962px; z-index: 1; height: 100%; background: url(images/background.jpg); background-repeat: repeat;"> <div id="top_decoration" > <div style="width:54px; height:51px; float:left; background: url(images/label-border-top-left.gif);"></div> <div style="float:left; width:857px; height:51px; background: url(images/label-border-top-mid.gif);" ></div> <div style="width:51px; height:51px; float:right; background: url(images/label-border-top-right.gif);" ></div> </div> <div id="border_container" style="height:100%; clear:both;"> <div id="left_border" style="height:550px; float:left; width: 20px; background: url(images/label-border-left.gif); background-repeat: repeat;"> </div> <div id="content_container" style="float:left; width:920px;"> <div id="Banner" style="position:relative; height:150px; width: 100%;"> <div id="YouAreHere" style=" padding-left: 10px; float:left; width:220px; height: 140px; "> </div><!-- your are here --> <div id="logo" style="float:left;"> <IMG src="images/logo.jpg" border="0" alt="Grey Stack Cellars"/> </div> <div align="right" style="float:right; padding-right: 20px; height:150px;"> <table height ="100%" width="100%"> <tr><td align="center"> <?php if ($_SERVER['HTTPS'] == 'on') { ?> <img src="images/icon-thawte2.gif" alt="Thawte SSL"> <?php } ?> </table> </div> </div> <!-- banner --> <div id="headline" style="clear:both; background-color: #8c8170; height: 25px; text-align: center; vertical-align: middle; padding-top: 7px; color: #FFFF99; font-size: 14px; width: 100%;"> <a href="index.php?Page=Home" class="head">Home</a> | <a href="index.php?Page=Bennett Valley" class="head">Bennett Valley</a> | <a href="index.php?Page=WineCategory& Category=Current Release Wines" class="head">Buy Wine</a> | <a href="index.php?Page=People" class="head">Information</a> | <a href="index.php?Page=ContactUs" class="head">Contact</a> | <a href="AccountFunctions.php?Mode=Cart" class="head">View Cart</a> | <a href="index.php?Page=Background" class="head">Trade</a> | <a href="http://www.greystackcellars.com/HomeGrown/index.php?Page=AccountManager" class="head">My Account</a> | <a href="AccountFunctions.php?Mode=LogOut" class="head">Log Out</a> </div><!-- headline --> <div ID="Wrapper" style="width: 920px; z-index: 1; height: auto; min-height: 400px; vertical-align: top; background: url(images/background.jpg); background-repeat: repeat;"> <!-- This has almost everything --> <div ID="main" style=" padding: 10px 0px 10px 0px;"> <!-- this has just the padding --> <div class="DialogTitle" style=" color:#555555;"> <?php print $page_title ?> </div><!-- page title --> <?php if (!file_exists($page_file)) print ("Internal error: File ".$page_file." for Page ".$_REQUEST['Page']. " not found<br>"); else require_once($page_file); ?> </div> <!-- main --> </div> <!-- Wrapper --> <div class="Bottom"> <a href="index.php?Page=SiteMap" class="bottom-link">Site Map</a> | <a href="index.php?Page=Terms" class="bottom-link">Terms & Conditions</a> | <a href="index.php?Page=Privacy" class="bottom-link">Privacy Policy</a> | <a href="index.php?Page=Gallery" class="bottom-link">Photo Gallery</a> </div> <!-- Bottom --> </div> <!-- content_container --> <div id="right_border" style="float:right; width: 20px;"> <img src="images/label-border-right.gif" width="20" height="555"> </div> </div> <!-- left and right border_container --> <div id="bottom_decoration" style="clear:both"> <div style="width:56px; height:56px; float:left; background: url(images/label-border-bot-left.gif);"></div> <div style="float:left; width:848px; height:51px; background: url(images/label-border-bot-mid.gif);" ></div> <div style="width:56px; height:56px; float:right; background: url(images/label-border-bot-right.gif);" ></div> </div><!--bottom decoration--> </div> <!--Container--> </body> </html> Peter Hi, I am having an issue using my CSS code, I have a drop down section on my menu bar on my site. I'm trying to firstly just set the background of the whole bar, Code: #nav-m { font: normal 12px Verdana; font-weight: bold; width: 100%; } #nav-m ul { float: left; left: 0; padding: 2px 0; text-decoration: none; text-indent: 5px; } #nav-m a { display: block; width: 10em; w\idth: 6em; color: #012345; text-decoration: none; padding: 0.25em 2em; } #nav-m a.daddy { } #nav-m li { float: left; padding: 0; background-image: url(http://taxbusters.eu.com/images/nav-bar1.jpg); background-repeat: no-repeat; } #nav-m li ul { position: absolute; left: -999em; height: auto; width: 14.4em; w\idth: 13.9em; font-weight: normal; border-width: 0.25em; margin: 0; } #nav-m li li { padding-right: 1em; width: 13em } #nav-m li ul a { width: 13em; w\idth: 9em; } #nav-m li ul ul { margin: -1.75em 0 0 14em; } #nav-m li:hover ul ul, #nav-m li:hover ul ul ul, #nav-m li.sfhover ul ul, #nav-m li.sfhover ul ul ul { left: -999em; } #nav-m li:hover ul, #nav-m li li:hover ul, #nav-m li li li:hover ul, #nav-m li.sfhover ul, #nav-m li li.sfhover ul, #nav-m li li li.sfhover ul { left: auto; } #nav-m li:hover, #nav-m li.sfhover { background: #bdd7e6; } however the background doesnt show up, and the font alignment isnt right, - there are so many problems http://alturl.com/nfkp Hi, is there anyone could give some help to fix the IE problem of my site : (bcm-hk.com). The site works perfectly on Firefox and Safari. But when it go into IE, the site Footer(black bar) can't stay in the bottom of the page. Im still new into CSS so not very sure the problem, probably doing wrong in "float" or "clear:both". thanks in advance and will be very much appreciate! Hello everyone, for our intranet I have developed new application tools with tabs to change icons. it is working fine on IE7+ but having problem with IE6. there are two divs in this applications and on IE 7+ both divs starts in new line. for some reasons in IE6 it comes in one line. what cna I put in the second div that will make it appear on new line. I have tried putting <p> tag but doesn't make any different. Any suggestions. thank you. <div id="mytabsmenu" class="tabsmenuclass"> <span style="cursorointer"> <ul> <li><a rel="gotsubmenu[selected]">Trust Applications</a></li> <li><a rel="gotsubmenu">General Applications</a></li> </ul> </span> </div> <div id="mysubmenuarea" title="Applications Toolbar" align="center" style=" background-image:url(/templates/default/IconImages/iconBkgrd.jpg); background-position:top; background-repeat:no-repeat; margin:2px; padding-top:12px; padding-left:30px; vertical-align:bottom; height:50px;"> <!--1st link within submenu container should point to the external submenu contents file--> <a href="/templates/default/js/submenucontents.htm" style="visibility:hidden">Sub Menu contents</a> </div> Hi, I already searched for this but didn't find anything So I registered and opened a new thread. First, this is my webpage: http://windmolentechnologie.tk In FF it shows up all perfect, but when looking in IE theres a line between the nav and the image (actually through the image) How can I fix this? Code: css html { margin:0; padding:0; height: 100%; } body { background-color: #f2f3ed; margin: 0px; padding: 0px; height: 100%; z-index:0; position:relative; text-align: center; } #container { position:relative; height:auto !important; min-height:100%; width: 760px; margin:0 auto; } #nav { width:100%; height:160px; background: url(../images/Nav.png) no-repeat; } #banner { width:100%; height:101px; background: url(../images/Banner.png) no-repeat; } #content { width:100%; height:500px; background:transparent; } #new { background: #e6e8dc url(../images/New.png) no-repeat; width:220px; height:500px; float:left; } #inhoud { background: #e6e8dc url(../images/Inhoud.png) no-repeat; width:540px; height:500px; float:left; text-align: left; } #footer { background: url(../images/Footer.png) no-repeat; height:50px; width:100%; position:relative; } p { margin:35px 5px 10px; } Code: index.html <HTML> <HEAD> <TITLE>Windmolentechnologie</TITLE> <LINK HREF="css/default.css" REL="stylesheet" TYPE="text/css" /> <noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript" src="js/nav1.js"></script> <script src="http://static.freewebs.getclicky.com/44044479.js" type="text/javascript"></script><noscript><img alt="Clicky" src="http://in.freewebs.getclicky.com/44044479-fwdb4.gif" /></noscript> </HEAD> <BODY> <div id="container"> <div id="nav"> <img src="images/Nav2.png" USEMAP="#nav" border="0" name="nav1"> <map name="nav"> <area shape="rect" coords="261,40,339,120" href="index.html" alt="Home" target="_top" onMouseOver="imageChange('nav1','alt1')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="341,40,419,120" href="inhoud.html" alt="Home" target="_top" onMouseOver="imageChange('nav1','alt2')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="421,40,499,120" href="logboek.html" alt="Home" target="_top" onMouseOver="imageChange('nav1','alt3')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="501,40,579,120" href="profielen.html" alt="Home" target="_top" onMouseOver="imageChange('nav1','alt4')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="581,40,659,120" href="bedrijven.html" alt="Home" target="_top" onMouseOver="imageChange('nav1','alt5')" onMouseOut="imageChange('nav1','alt0')" /> </map> </div> <div id="banner"> </div> <div id="content"> <div id="new"> Dit is een testlijntje </div> <div id="inhoud"> <p>Dit is een testlijntje</p> </div> </div> <div id="footer"> </div> </div> </BODY> </HTML> KFredje I have created a nav bar with css using the widely distributed '<ul>' coding. The problem I am having I think is with the anchor tags. The look of the nav bar is fine but depending on the float position the anchor tag immediately next to it won't follow the css. Here is the css.. body { margin:0; padding:0; } div.container { text-align:center; } div.center { margin-top:20px; margin-left:auto; margin-right:auto; width:800; text-align:left; } div.left { float:left; width:100; height:500; background-color:#007700; } div.right { float:right; width:130; height:500; background-color:#e8e8e8; font-size:10pt; } div.header { clear:both; width:40%; } div.footer { clear:both; margin:0; width:100%; } ul { float:left; width:100%; padding:0; margin:0; list-style-type:none; } a.topmenu { float:right; width:5em; height:2em; text-decoration:none; color:#005500; background-color:#e8e8e8; padding:0.2em 0.6em; border-right:1px solid #005500; } a.topmenu:hover { background-color:#005500; color:#e8e8e8; } a.topmenu:visited { float:right; width:5em; text-decoration:none; color:#005500; background-color:#e8e8e8; padding:0.2em 0.6em; border-right:1px solid #005500; } li { display:inline; } a.leftmenu { color:#ffffff; text-decoration:none; } a.leftmenu:hover { color:black; } a.leftmenu:visited { color:#ffffff; text-decoration:none; } and here is the html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <link rel="stylesheet" type="text/css" href="newstyle.css"/> </head> <body> <div class='container'> <div class='center'> <img src="fdat_logo_short.jpg" width=250 /> <ul> <li><a class='topmenu' href="contact.php">Contact Us</a></li> <li><a class='topmenu' href="about.php">About Us</a></li> <li><a class='topmenu' href="services.php">Services</a></li> <li><a class='topmenu' href="news.php">News</a></li> <li><a class='topmenu' href="home.php">Home</a></li> </ul> </div> </div> </body> </html> Hi, i having some problems with some css code, it looks ok with FF but in IE he design looks bad. I have cked with WC3 Validator and it pass the tests. Anyone have some ideeas abut fixing that. Thanks. Code: * { margin: 0; padding: 0; } body { background: #f4bd27 url('images/background__ornoment.png'); color: #323232; font: 11px verdana; padding: 25px 0; } div.background__gradient { background: url('images/background__gradient.png') repeat-x; height: 800px; min-height: 1px; width: 100%; margin: -25px 0 0 0; position: absolute; z-index: -9999; } a { color: #323232; border-bottom: 1px dotted #969696; text-decoration: none; } a:hover { color: #646464; } a img { border: none; } img { margin: 3px 0; } h3 { border-bottom: 1px solid #c8c8c8; margin: 0 0 3px 0; padding: 0 0 3px 0; } h3 a { border: none; } hr { border: 0 none #ffffff; border-top: 1px solid #c8c8c8; clear: both; display: block; height: 1px; margin: 3px 0; } ul, ol { padding: 0 15px; } div.clearBoth { clear: both; } div.small { font-size: 9px; } textarea { margin: 3px 0; width: 702px; } div.container { margin: auto; width: 968px; } div.header {} div.header__logo { background: url('images/header__logo.png'); height: 77px; margin-left: -7px; /* !!! */ width: 188px; } h2.navigation { left: -9999em; position: absolute; } .navigation ul { margin: 0; overflow: hidden; padding: 0; } .navigation li { float: left; list-style: none; } .navigation a { border: 0; display: block; float: left; height: 37px; margin-top: -37px; overflow: hidden; text-indent: -9999em; } #navigation__sakums a { background: url('images/navigation/sakums.png'); margin-left: 166px; width: 112px; } #navigation__sakums a:hover { background: url('images/navigation/sakums.png'); background-position: 0 37px; margin-left: 166px; width: 112px; } #navigation__blogs a { background: url('images/navigation/blogs.png'); margin-left: 278px; width: 95px; } #navigation__blogs a:hover { background: url('images/navigation/blogs.png'); background-position: 0 37px; margin-left: 278px; width: 95px; } #navigation__galerija a { background: url('images/navigation/galerija.png'); margin-left: 373px; width: 114px; } #navigation__galerija a:hover { background: url('images/navigation/galerija.png'); background-position: 0 37px; margin-left: 373px; width: 114px; } #navigation__pamacibas a { background: url('images/navigation/pamacibas.png'); margin-left: 487px; width: 132px; } #navigation__pamacibas a:hover { background: url('images/navigation/pamacibas.png'); background-position: 0 37px; margin-left: 487px; width: 132px; } #navigation__dg-studija a { background: url('images/navigation/dg-studija.png'); margin-left: 619px; width: 132px; } #navigation__dg-studija a:hover { background: url('images/navigation/dg-studija.png'); background-position: 0 37px; margin-left: 619px; width: 132px; } #navigation__kas-esmu a { background: url('images/navigation/kas-esmu.png'); margin-left: 751px; width: 133px; } #navigation__kas-esmu a:hover { background: url('images/navigation/kas-esmu.png'); background-position: 0 37px; margin-left: 751px; width: 133px; } div.header__rss { background: url('images/header__rss.png'); height: 58px; margin-top: -58px; margin-left: 899px; width: 69px; } div.wrap__top { background: url('images/wrap__top.png'); height: 11px; } div.wrap { background: url('images/wrap.png'); } div.wrap__gloss { background: url('images/wrap__gloss.png'); height: 91px; position: absolute; margin: -76px 0 0 5px; width: 958px; } div.content { margin: auto; width: 928px; } div.wrapWindows { float: left; z-index: 1; /* DON'T WORK! */ } div.windows { margin: auto; width: 736px; } div.windows__top { background: url('images/windows__top.png'); height: 15px; } div.windows__middle { background: url('images/windows__middle.png'); } div.windows_ { margin: auto; padding: 0 0 6px 0; width: 706px; } div.windows__bottom { background: url('images/windows__bottom.png'); height: 31px; } div.wrapSidebar { float: right; z-index: 1; /* DON'T WORK! */ } div.sidebar { margin: auto; width: 188px; } div.sidebar__top { background: url('images/sidebar__top.png'); height: 15px; } div.sidebar__middle { background: url('images/sidebar__middle.png'); } div.sidebar_ { margin: auto; padding: 0 0 6px 0; width: 158px; } div.sidebar__bottom { background: url('images/sidebar__bottom.png'); height: 31px; } div.bullet { background: url('images/bullet.png'); float: right; height: 16px; margin: 5px 10px 0 0; width: 16px; } div.footer { background: url('images/footer.png'); height: 109px; width: 968px; } div.footer__twitter_com { background: url('images/footer__twiiter_com.png'); float: right; height: 46px; margin: 19px 32px 0 0; width: 98px; } div.footer_ { padding: 27px 0 0 46px; } div.headerSearch { width:200px; height:25px; position:absolute; right:500px; background:url(./images/headerSearch.png) no-repeat 0 0; height: 30px; margin-top: 9px; overflow: hidden; text-indent: -9999em; } .searchQuery { display:block; float:left; padding:6px 5px 5px 10px; width:117px; height:14px; font-size:11px; border:0; color:#333; background:none; } .searchQueryIA { color:#666; font-style:italic; } .searchButton { display:block; float:left; margin-left:-7px; width:20px; height:25px; padding:0; border:0; background:none; text-indent:-1000px; cursor:pointer; } Hello all, Apologies to be asking for help on my first post, but I've scoured the internet looking for what is probably a quick fix but without the terminology I'm losing hours - time to ask for help! my site is englas.pl and in forefox it's fine. In ie8 it seems to be fine as well, the problem is with ie 6&7. The CSS validates according to the w3c site. (Sorry, can't add urls as i'm a new user) ie6&7 'cuts' off the bottom section of text where the container meets menu-bottom-bkg. At least this is what is visibly the case when you look at the webpage. The custom div look like this: #container { background: #FFF url(../images/bkg_container.png) repeat-y; min-height: 100%; width: 1190px; margin: 0 auto; padding: 0 14px 0 14px; } #header { background: url(../images/bkg_header.png); height: 127px; width: 1160px; margin: 0; padding: 15px 0 0 30px; } #menu-top-bkg { background: url(../images/bkg_menu_top.png) no-repeat left top; height: 128px; width: 1190px; margin: 0 0 -128px 0; } #wrapper { overflow: auto; background: url(../images/bkg_menu.png) repeat-y left; min-height: 500px; width: 1190px; margin: 0; padding: 0; } #menu { float: left; background: none; min-height: 370px; width: 159px; margin: 0; padding: 110px 0 0 0; } #content { float: right; background: url(../images/bkg_content.png) no-repeat right top; min-height: 400px; width: 763px; margin: 0 0 0 25px; padding: 15px 243px 10px 0; } #menu-bottom-bkg { background: url(../images/bkg_menu_bottom.png) no-repeat; height: 141px; width: 1190px; margin: -111px 0 0 0; } #footer { background: url(../images/bkg_footer.png); height: 100px; width: 1190px; margin: 0; padding: 16px 0 0 0; } I've gone through the html and i can't find any evidence of it being this, so i'm hoping that the css work above doesn't comply with something in the ie6&7 coding spec. I've read the guidelines to posting, so I've edited the post as much as possible to be helper friendly! Many thanks to all, doodlebug Hello all. I've just started learning to code because I recently started a business and needed a website. I'm having a few issues. I'm using the 960 Grid System plus a scroller found at queness.com I can't post links here apparently, or I'd show you what I'm using. The page renders fine in Firefox (Mac & PC) Safari (Mac & PC) IE 8 and Chrome. IE 6 is screwed beyond understanding. IE 7 Pushes me off the screen and links don't work. And Opera squeezes my text together. I have screen shots if necessary. Here is a link to the site in question: ohmyyoga.com I inserted a redirect script for IE 6-7. So you'll be redirected to my old site if you try the regular URL from either of those browsers. For the purposes of this, I've copied the site W/O the redirect. The link is test2.ohmyyoga.com The site validates CSS and XHTML. I'm sure it's something super simple. I'm just brand new to all of this. Any help would be appreciated. Cheers I have two problems, 1. One page of my website centers nicely in everything but but IE, trying to fix. Can't figure out what to do. 2. I attempted to use Firebug to see if I could figure out why this one page does not center vs all the others but it escapes me. Then I realized I was using Firebug in Firefox, how would it know there was a problem in IE. I am a new member of this forum so I can't post a URL for you to look at. Need to know how the pull down menu and a browse button could take a style like http://www.discovertravel.no/ i tried to make it but it did not work on firefox... so can anyone help me to make this style coz it appears well in firefox. |