CSS - My Site Looks Off In Google Chrome
Hi, my site looks good in all browsers, PC and Mac, except Google Chrome.
Here's the site:site Do I need to write a CSS exception for Google Chrome? thanks Similar TutorialsI have a website (www.fullforcecreative.com) that displays properly on I.E. and Firefox. I just recently pulled it up in Google Chrome, and it appears no style sheets are being imported. I then thought "that is strange, but Safari is based on the same thing (kinda), so I'll load it in Safari." Same issue. No style sheets. Has anyone seen anything like this before? I link to one style sheet in the header. Code: <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css; charset=utf-8" media="screen" /> This style sheet linked to from that line: Code: @charset "UTF-8"; @import url(yaml/core/base.css); @import url(css/navigation/nav_shinybuttons.css); @import url(css/screen/basemod.css); @import url(css/screen/content.css); @import url(yaml/print/print_003.css); All the other stylesheets open with the Code: @charset "UTF-8"; @media all { insert css here } The site is using YAML (http://www.yaml.de/en/) as a framework for the CSS. The only issue I could find relativly close to it was this: http://www.davidroessli.com/logs/2007/03/safari_utf8_rendering_glitch_f/ I made the change listed there (because the CSS stylesheets are in UTF-8), but it made no difference. Does anyone have any ideas? This is driving me up the wall. It does display properly in I.E. and firefox. Thanks, seth I'm using the default theme in WordPress and I want to keep the double arrow (>>) for bullet lists that come by default but I need to style those out in some instances. This is the code that brings it in. Code: .entry ul li:before { content: "\00BB \0020"; } Now, here's a case where I'm trying to remove any list style: Code: .entry .BioInfo ul li:before { content:none; } This works in Firefox and IE8 but not much else. How can I override the default in browsers like Chrome and output no list styling? Are there any? I am using the 'body:nth-of-type' hack at the moment and it is the one error when i validate my css. Any help much appreciated! I triedThis one aswell but again the css won't validate. I know there must be more i haven't tried but i was wondering if someone would be so kind and save me the effort of finding one that validates?? p.s. i am new at this... be kind!! Hi, If you check this site out with Google Chrome or Safari, you'll see (just below the header) the mid-section is offset to the right. http://www.ergopro.com/ I noticed if I remove the "Icons" div everything is okay, but I need it there. I tried adjusting it, but no dice. Any ideers? Much thanks in advance. If you go to the example site: devbum.com/coded/audven/ The top navigation seems to be pushed upwards in Windows Safari and Google Chrome and not centered like in FF, IE6, IE7, and Opera. I'm not sure why it's doing this though... does it also render differently on Mac Safari? Quick question, can someone tell me why do i get a white space on the right side of the screen http://www.impulsanl.org/testing.htm on IE 7 and IE 8? It seems to work ok with firefox and google chrome. (all screen). CSS code: Code: #extraDiv1 { background: url(images/header1.png) repeat-x; position: absolute; top: 0px; left: 0px; width: 100%; height: 100px; margin: 0; padding: 0; } HTML Quote: <div id="extraDiv1"></div> thanks. Hi Guys I am struggling to resolve a small issue i am having. I am using a mac, and am working on a contact form for a website. I am using the latest mac OS and latest versions of all browsers. The following link is fine in firefox, however, in Safari and google chrome, the 'Message' text area has a big gap above it and I do not know how to get rid of this. Here is the code for the form... <form id="form" name="frmQuote" class="contactForm" method="post" action="process.php" onsubmit="return validate_form(this);" > <ul> <li> <label for="name">Name:</label> <input name="name" id="name" type="text" class="required" /> </li> <li> <label for="email">E-mail:</label> <input name="email" id="email" type="text" class="required email" /> </il> <li> <label for="subject">Subject:</label> <input name="subject" id="subject" type="text" class="required" /> </li> <li> <label for="detail">Message:</label> <textarea name="detail" id="detail" rows="6" cols="60" class="required"></textarea> </li> <li> <input type="submit" name="submit" id="submit" value="Submit" tabindex="100" class="submitBtn" /> </li></ul> </form> Here is the css for that page... #content_about { color: #666666; } /*************************************************** CONTACT ***************************************************/ #form { margin: 0px; position: relative; padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 15px; float: left; } #form div { width: 510px; position: relative; float: left; padding-bottom: 9px; } #form div label { width: 400px; } #form div label.error { color: #a80000; position: absolute; top: 0px; right: 0px; text-align: right; font-size: 11px; } #form div.message_sent { background-color: #31B8DA; width: 890px; float: left; padding: 10px; margin-bottom: 15px; color: #FFFFFF; } #form input { width: 499px; padding: 8px; font-size: 13px; color: #999999; background-color: #FFFFFF; float: right; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #C3C3C3; border-right-color: #E8E8E8; border-bottom-color: #E8E8E8; border-left-color: #C3C3C3; } #form input:focus, #form textarea:focus { background-color: #F4F4F4; } #form textarea { width: 500px; padding: 8px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: #FFFFFF; color: #aaaaaa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #C3C3C3; border-right-color: #E8E8E8; border-bottom-color: #E8E8E8; border-left-color: #C3C3C3; float: right; margin: 0px; } #form .submitBtn { background-color: #31b8da; width: 95px; color: #FFFFFF; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; padding: 0px; font-size: 16px; height: 35px; display: block; margin-top: 20px; } #form .submitBtn:hover { background-color: #1F93B4; color: #FFFFFF; } #form .submitBtn:focus { background-color: #4FC1E1; } #form strong { font-size: 24px; color: #FFFFFF; font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #6a6a6a; display: block; } #form .font-11 { font-size: 11px; color: #CCCCCC; display: inline; } #content_about #form li label { margin-top: 0px; margin-right: 35px; margin-bottom: 0px; margin-left: 0px; line-height: 30px; } #content_about #form li { padding-top: 10px; padding-right: 15px; padding-bottom: 10px; padding-left: 0px; } Any help would be greatly appreciated. Regards Jay heres my currently working on site it look great on IE, Firefox and opera but i just see a blank page in Chrome and Safari!! web site: macmillanpc.host56.com/Dreamy_Elegance_template/ please help me! :/ check source, the css is in there (not linked) these is really f... me off. Sorry if its too vague, let me know if you need more details. Hey, for a while I've been developing a site, just to improve my skills in php etc. I always tested it in IE7/IE8 and Mozilla 3, I knew other browsers wouldn't render it great, but I also need things to look okay with Chrome. This is how my site SHOULD look: This is how it looks in chrome: My site URL is http://www.pokerbrothers.net The HTML for the entire page: The parts that effect the 2 bars that are broken in chrome are highlighted 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=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <meta name="keywords" content="poker,brothers,free,fast,simple,texas,holdem,guest" /> <meta name="robots" content="follow,index" /> <title>Home :: PokerBrothers.net</title> <link href="http://www.static.pokerbrothers.net/css/include?load=15&x=182&y=631" rel="stylesheet" type="text/css" /> <script type="text/javascript"> // Globs var session_id = "pjpennan89o2m1dn6kjh4n48d7"; var session_userid = 0; var session_username = "Guest_"; var session_location = "http://www.pokerbrothers.net/"; var session_location_encoded = "http%3A%2F%2Fwww.pokerbrothers.net%2F"; var session_location_last = ""; function pageOnLoad () { setTimeout("pbhttp_Session_Exit(true, '15')", 900000); } </script> <script type="text/javascript" src="http://www.static.pokerbrothers.net/js/class.js" defer="defer"></script> <script type="text/javascript" src="http://www.static.pokerbrothers.net/js/global.js" defer="defer"></script> </head> <body onload="pageOnLoad();"> <div id="container" align="center"> <div class="bar_container"> <ul id="bar_header"> <li id="bar_header_left"></li> <li id="bar_header_title"><a href="http://www.pokerbrothers.net/"></a></li> <li id="bar_header_fill"></li> <li id="bar_header_howtoplay"><div/><a href="http://www.faq.pokerbrothers.net/play/how"></a></li> <li id="bar_header_signup"><div/><a href="http://www.signup.pokerbrothers.net/"></a></li> <li id="bar_header_play"><div/><a href="http://www.play.pokerbrothers.net/"></a></li> </ul> </div> <div class="bar_container"> <div id="bar_navigation"> <div id="bav_navigation_top"> <div id="bar_navigation_top_left"></div> <div id="bar_navigation_top_fill"> <div id="bar_navigation_top_fill_loginarea"> <form id="navlogin" name="navlogin" action="http://www.login.pokerbrothers.net/login" method="post" onsubmit="return pbhttp_nav_login_check()"> <div id="bar_navigation_top_fill_loginarea_usernamearea"> <input type="text" id="navlogin_username" name="navlogin_username" maxlength="30" value="Username" onfocus="nav_login_form_onclick('user');" onblur="nav_login_form_exit('user')" /> </div> <div id="bar_navigation_top_fill_loginarea_passwordarea"> <input type="text" id="navlogin_password" name="navlogin_password" maxlength="30" value="Password" onfocus="nav_login_form_onclick('pass');" /> </div> <div id="bar_navigation_top_fill_loginarea_submitarea"> <input type="submit" id="navlogin_submit" name="navlogin_submit" value="" /> </div> </form> </div> <div id="bar_navigation_top_left_text"> Welcome to PokerBrothers. Please login or <a href="http://www.signup.pokerbrothers.net/">Sign up</a> </div> </div> <div id="bar_navigation_top_right"></div> </div> <div id="bar_navigation_bottom"> <div id="bar_navigation_bottom_left"></div> <div id="bar_navigation_bottom_fill"> </div> <div id="bar_navigation_bottom_right"></div> </div> </div> </div> <div class="bar_container"> <table id="bar_body" cellpadding="0" cellspacing="0" border="0"> <tr id="bar_body_top"> <td id="bar_body_box1_top_left"></td> <td id="bar_body_box1_top_fill" align="center"><div id="bar_body_box1_top_text"></div></td> <td id="bar_body_merge_top"></td> <td id="bar_body_box2_top_fill" align="center"><div id="bar_body_box2_top_text"></div></td> <td id="bar_body_box2_top_right"></td> </tr> <tr id="bar_body_middle"> <td id="bar_body_box1_middle_left"></td> <td id="bar_body_box1_body"> Welcome to PokerBrothers.net, bleh. </td> <td id="bar_body_merge_middle"></td> <td id="bar_body_box2_body"> Load ad here </td> <td id="bar_body_box2_middle_right"></td> </tr> <tr id="bar_body_bottom"> <td id="bar_body_box1_bottom_left"></td> <td id="bar_body_box1_bottom_fill"></td> <td id="bar_body_merge_bottom"></td> <td id="bar_body_box2_bottom_fill"></td> <td id="bar_body_box2_bottom_right"></td> </tr> </table> </div> </div> </body> </html> And the CSS... Direct links: Some CSS that effects both bars: http://www.static.pokerbrothers.net...de?load=6&x=571 The top bar's css: http://www.static.pokerbrothers.net/css/headerbar.css the other bar's css: http://www.static.pokerbrothers.net/css/navbar.css I'm wondering if anybody has any clues as to why my site appears like this, i've spent hours and hours trying countless things but to no avail. Any help on anything related to this will be appreicated, thanks . Oh, and sorry for the lack of commenting in the CSS, it wasnt planned... It is quite messy Hi I am not new to web development but fairly new to css and learning css-xhtml for web 2.0. I am making a design at http://www.superstaruk.com/v/ it shows fine in IE but in FF, Chrome and Opera etc it shows broken. Main problem is with pistioning the divs and also the background of free delivery does not appear. Can anybody help me please by pointing out the problem? I read the box-model but even according to that i am unable to solve this. thank you Hey guys, I'm in need of some help here. Okay, so. My site looks the way I want so far on google chrome and safari (mac). And right now I'm at the stage of getting it to display like the two. If anyone who decides to help doesn't have access to certain browsers, I'll further explain, but I think it's easiest said to see for yourself. Right now I'm focusing on ie6, ie7, ff3. The markup in some areas is whacky, I know, but I decided to pick up where I left off on this project (which I first began building awhile ago) instead of starting completely over with a good template. http://thecheckoutplace.com/compute...eOneNetbook.php If anyone can offer a hand, it means a lot. Cheers guys. Thanks for taking the time to read my question. I'm having to update a site I did a while ago, and am now quite out of practice, as I've done nothing since. I made the site before Chrome was released, and now, since I'm updating it, would like to make sure it displays properly in Chrome as well. I have buttons for my top nav, that when you hover over them increase in size. The text on the button is not a part of the image. The text in question is "Contact Us" in FF and IE the text wraps after Contact, with the Us underneath it. In Chrome it stays on one line. If I decrease the size of my <div> by one pixel the text wraps in Chrome. I can't do that though as it shaves off one pixel of my button image. I can't seem to find a site that will tell me what the difference is between Chrome IE and FF. Here is my css and html for my nav if it helps. attached is a pic of the difference. The red is to sho the navcontainer div. Notice the difference in the Contact Us button. Thanks, Brad HTML: Code: <div id="navcontainer"> <ul> <li class="Active OneLineAct">Home</li> <li class="NotActive1 OneLine"><a href="ZoneAll-Products.htm">Products</a></li> <li class="NotActive1 TwoLine"><a href="ZoneAll-ContactUs.htm">Contact Us</a></li> <li class="NotActive2"><a href="wadsz3000.htm">Wiring Diagrams</a></li> <li class="NotActive1 TwoLine"><a href="stahr.htm">What’s New</a></li> <li class="NotActive2"><a href="application.htm">Sample Specs</a></li> <li class="NotActive2"><a href="tshooting.htm">Trouble Shooting</a></li> </ul> </div> CSS: Code: #navcontainer ul { margin: 10px 8px 0px 0px; padding: 0px; /*background-color: transparent;*/ background-color:red; color: #000000; width: 728px; font-family:Arial, Helvetica, sans-serif; float: right; } #navcontainer ul li { display: inline; } #navcontainer ul li.Active { text-decoration: none; text-align: center; float: left; width: 104px; height: 70px; background-image:url(Images/BigBlueButton.jpg); background-repeat:no-repeat; background-position:top; /*letter-spacing: .1em;*/ /*padding: 20px 0px 0px 0px;*/ margin: 0px 0px 0px 0px; font-size: 22px; } #navcontainer ul li.OneLineAct{ padding: 20px 0px 0px 0px; } #navcontainer ul li.TwoLineAct{ padding: 10px 0px 0px 0px; letter-spacing: .11em; } #navcontainer ul li.NotActive1 a { text-decoration: none; color: #000000; text-align: center; float: left; background-image:url(Images/SmallBlueButton.jpg); background-repeat:no-repeat; background-position:top; width: 79px; height: 53px; margin: 10px 12px 0px 13px; font-size: 14px; } #navcontainer ul li.NotActive2 a { text-decoration: none; /*color: #000000;*/ color:#990000; text-align: center; float: left; background-image:url(Images/SmallBlueButton.jpg); background-repeat:no-repeat; background-position:top; width: 79px; height: 53px; letter-spacing: .1em; margin: 10px 12px 0px 13px; padding: 12px 0px 0px 0px; font-size: 14px; } #navcontainer ul li.NotActive1 a:hover { text-align: center; background-image:url(Images/BigBlueButton.jpg); background-repeat:no-repeat; background-position:top; text-decoration: none; /*letter-spacing: .1em;*/ width: 104px; height: 70px; margin: 0px 0px 30px 0px; font-size: 20px; float: left; } #navcontainer ul li.NotActive2 a:hover { text-align: center; background-image:url(Images/BigBlueButton.jpg); background-repeat:no-repeat; background-position:top; text-decoration: none; /*letter-spacing: .1em;*/ width: 104px; height: 70px; margin: 0px 0px 13px 0px; padding: 8px 0px 0px 0px; font-size: 20px; float: left; } #navcontainer ul li.OneLine a{ padding: 18px 0px 0px 0px; } #navcontainer ul li.TwoLine a{ padding: 12px 0px 0px 0px; letter-spacing: .11em; } #navcontainer ul li.OneLine a:hover { padding: 20px 0px 0px 0px; } #navcontainer ul li.TwoLine a:hover { padding: 10px 0px 0px 0px; } Hi, Thanks for your time... If you visit this site with IE7, http://demo.wp4re.com, you should see a big gap just beneath the main menu and the house photo and blue back gradient background. This looks fine in FF3 and Chrome, so you can see how it's meant to look with either browser. Any idea what's causing this? PS - The xhtml doesn't validate (2 errors), but it's it's not the issue as I already tried removing the culprits yet it didn't affect the gap. I've since put the code back in. Thanks in advance. Hello everyone. I am new to CSS and I have been trying to create a CSS layout composed of a 2x2 grid using DIVs. The top cells have fixed width and height, with the bottom ones having fixed width and variable height depending on the content. I achieved this with success as they look as intended in IE8 (don't have 9 available) and the latest versions of Firefox and Opera. In Chrome (and Safari for that matter), sometimes it will render just fine or look one or two pixels out of place depending on the width of the browser window. 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> <style type="text/css"> html,body { margin: 0px; background-image: url(http://i.imgur.com/NHbHt.png); background-repeat: repeat-y; background-position: center; background-color: #f7f4ee; text-align: center; } #wrap { width:750px; margin:0px auto; text-align:left; } #topleft { display:block; margin-left:1px; float:left; width:572px; height:127px; background-color:#ccc; padding:0px 0px text-align:left; } #topright { display:block; margin-left:1px; margin-right:1px; float:left; width:175px; height:127px; background-color:#ffffff; padding:0px 0px; text-align:left; } #bottomleft { display:block; margin-left:1px; float:left; width:572px; background-color: yellow; padding:0px 0px text-align:left; } #bottomright { display:block; margin-left:1px; margin-right:1px; float:left; width:175px; background-color:green; padding:0px 0px; text-align:left; } </style> </head> <body> <div id="wrap"> <!-- Slideshow --> <div id="topleft"> topleft </div> <!-- Logo --> <div id="topright"> <img src="logo.png" alt="logo" width="175" height="127"> </div> <!-- Contents --> <div id="bottomleft"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id ipsum nec justo auctor tristique in eu sapien. Vestibulum commodo lacinia volutpat. Donec tempor imperdiet sagittis. Cras gravida viverra nisi eget adipiscing. Mauris quis sollicitudin odio. Nunc eu nulla enim, at tempor nibh. Maecenas iaculis egestas condimentum. Praesent non odio velit. </div> <!-- Menu --> <div id="bottomright"> bottomright <ul> <li>Option 1</li> <li>Option 2</li> <li>Option 3</li> </ul> <p>Sidebar</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id ipsum nec justo auctor tristique in eu sapien. Vestibulum commodo lacinia volutpat. Donec tempor imperdiet sagittis. Cras gravida viverra nisi eget adipiscing. Mauris quis sollicitudin odio. Nunc eu nulla enim, at tempor nibh. Maecenas iaculis egestas condimentum. </p> </div> </div> </body> </html> The lines shown are part of the background, as it was the easiest solution I came across with to make it look like the columns go all the way down to the bottom of the page. So, I believe my issue lies on the DIVs and/or the centered background but I have no idea how to work around this. Thanks in advance for your time and advice. Cheers I am a complete novice and have helped someone with their website. All fine in IE but the sub menus do not work in Chrome? If you hover over Domestic Services (for example) in the main menu which runs down the left of my web site a sub menu appears to the right in IE (I have version 7) but not in Chrome (which I've just downloaded so I have the newest version). It all works just as I want it to do in IE7. Is this a Chrome issue or more than likely I have done something wrong. Can anyone help me, sorry I have tried but I can't see what I've done wrong. Thanks for any help - Lindsay. Here is my CSS /* Menu properties */ #left-menu{ width:210px; height:265px; border-left:#474843 19px solid; background-color:#171717; padding:30px 0px; } #left-menu ul { margin:0; padding:0; list-style:none; } #left-menu ul li { margin:0px; padding:0px; height:20px; line-height:20px; } #left-menu ul li a{ font-family:Tahoma, Verdana, Arial, sans-serif; font-size:12px; font-weight:normal; text-decoration:none; color:#D7D7D7; background:url(images/left-menu.gif) 26px 5px no-repeat; padding-left:47px; } #left-menu ul li a:hover{ background:url(images/left-menu-hover.gif) 26px 5px no-repeat; text-decoration:underline; color:#CC0000; } #left-menu ul ul { position: relative; top: 0; display:none; margin:0; padding:0; } #left-menu ul li ul li { } #left-menu ul li ul li a:hover{ } #left-menu ul li:hover ul{ display: block; position:absolute; top:325px; padding-right:50px; padding-top:5px; padding-bottom:5px; border-right:#474843 19px solid; border-left:#474843 2px solid; border-top:#474843 2px solid; border-bottom:#474843 2px solid; background-color:#171717; } And here is the HTML <ul id="left-menu"> <li><a href="../index.html">Home</a></li> <li><a href="../domestic.html">Domestic Services</a> <img src="../images/arrow_r.gif"> <ul> <li><a href="../domesticglass.html">Window & Glass Care</a></li> <li><a href="../domesticextbuilding.html">Exteriors of Buildings Cleaned</a></li> <li><a href="../domesticdecking.html">Path Decking & Patio Cleaning</a></li> <li><a href="../domesticconservatory.html">Conservatory Valeting</a></li> <li><a href="../domesticgutter.html">Gutter, Soffit & Fascia Cleaning</a></li> </ul> </li> <li><a href="../commercial.html">Commercial Services</a> <img src="../images/arrow_r.gif"> <ul> <li><a href="../commercialglass.html">Window & Glass Care</a></li> <li><a href="../commercialgutter.html">Gutter & Fascia Cleaning</a></li> <li><a href="../commercialextbuilding.html">Exteriors of Buildings Cleaned</a> </li> <li><a href="../commercialsign.html">Sign Cleaning</a></li> </ul> </li> <li><a href="../quote.html">Quotations</a></li> <li><a href="../waterfedpole.html">Water Fed Poles</a></li> <li><a href="../health.html">Health and Safety</a></li> <li><a href="../faq.html">FAQ</a></li> <li><a href="../photos.html">Photo Gallery</a></li> <li><a href="../aboutus.html">About Us</a></li> <li><a href="../contact.html">Contact Us</a></li> <li><a href="../links.html">Links</a></li> </ul> Hi all, ive got a problem that only seems to be happening in google chrome, if you look at http://roksportsurf.co.uk/acatalog/Mens_Billabong_Tee_Shirts.html the red circles with the price in are out of position on first load, but if I refresh the page they are in the correct position. Ive tried IE and Firefox and they display fine there, even safari works ok. any ideas what could be causing it? We've set up a CSS / Javascript dropdown menu which works fine in all browsers (even Opera, amazingly) EXCEPT Chrome- does anyone have an idea why? Is Chrome particularly bad with this sort of code? The CSS for the menu is as follows: .jqueryslidemenu{ font: bold 12px "Arial Unicode MS", Arial, sans-serif; background: #6666cc; width: 97%; } .jqueryslidemenu ul{ margin: 0; padding: 0; list-style-type: none; } /*Top level list items*/ .jqueryslidemenu ul li{ position: relative; display: inline; float: left; } /*Top level menu link items style*/ .jqueryslidemenu ul li a{ display: block; background: #6666cc; /*background of tabs (default state)*/ color: white; padding: 9px 25px; border-right: 1px solid #fff; color: #2d2b2b; text-decoration: none; border-left:0px; } * html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/ display: inline-block; } .jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{ color: white; } .jqueryslidemenu ul li a:hover{ background: #33cc66; /*tab link background during hover state*/ color: white; } /*1st sub level menu*/ .jqueryslidemenu ul li ul{ position: absolute; left: 0; display: block; visibility: hidden; } /*Sub level menu list items (undo style from Top level List Items)*/ .jqueryslidemenu ul li ul li{ display: list-item; float: none; } /*All subsequent sub menu levels vertical offset after 1st level sub menu */ .jqueryslidemenu ul li ul li ul{ top: 0; } /* Sub level menu links style */ .jqueryslidemenu ul li ul li a{ font: normal 12px "Arial Unicode MS", Arial, sans-serif; width: 120px; /*width of sub menus*/ float:left; padding: 10px 20px 10px; margin: 0; border-top-width: 0; border-right: 0px solid #fff; border-left: 0px solid #fff; border-bottom: 1px solid white; } .jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/ background: #eff9ff; color: black; } And it uses the following Javascript file: var arrowimages={down:['downarrowclass', 'down.gif', 23], right:['rightarrowclass', 'right.gif']} var jqueryslidemenu={ animateduration: {over: 200, out: 100}, //duration of slide in/ out animation, in milliseconds buildmenu:function(menuid, arrowsvar){ jQuery(document).ready(function($){ var $mainmenu=$("#"+menuid+">ul") var $headers=$mainmenu.find("ul").parent() $headers.each(function(i){ var $curobj=$(this) var $subul=$(this).find('ul:eq(0)') this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()} this.istopheader=$curobj.parents("ul").length==1? true : false $subul.css({top:this.istopheader? this._dimensions.h+"px" : 0}) $curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: arrowsvar.down[2]} : {}).append( ) $curobj.hover( function(e){ var $targetul=$(this).children("ul:eq(0)") this._offsets={left:$(this).offset().left, top:$(this).offset().top} var menuleft=this.istopheader? 0 : this._dimensions.w menuleft=(this._offsets.left+menuleft+this._dimens ions.subulw>$(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft if ($targetul.queue().length<=1) //if 1 or less queued animations $targetul.css({left:menuleft+"px", width:this._dimensions.subulw+'px'}).slideDown(jqu eryslidemenu.animateduration.over) }, function(e){ var $targetul=$(this).children("ul:eq(0)") $targetul.slideUp(jqueryslidemenu.animateduration. out) } ) //end hover }) //end $headers.each() $mainmenu.find("ul").css({display:'none', visibility:'visible'}) }) //end document.ready } } //build menu with ID="myslidemenu" on page: jqueryslidemenu.buildmenu("myslidemenu", arrowimages) And lastly, the menu is placed in pages as follows (example): <div id="myslidemenu" class="jqueryslidemenu"> <ul> <li class="mainmenu"><a href="index.htm">Home</a></li> <li class="mainmenu"><a href="news.htm">News & Events</a></li> <li class="mainmenu"><a href="products.htm">Products & Services</a> <ul> <li class="menu"><a href="#nogo">New Products</a> <ul> <li class="menu"><a href="clinaxysdetails.htm">Details</a></li> <li class="menu"><a href="clinaxystrials.htm">Trials</a></li> <li class="menu"><a href="clinaxyssafety.htm">Safety</a></li> <li class="menu"><a href="instruments.htm">Instruments</a></li> </ul> </li> <li class="menu"><a href="installation.htm">Installation</a></li> <li class="menu"><a href="training.htm">Training</a></li> <li class="menu"><a href="maintenance.htm">Maintenance</a></li> <li class="menu"><a href="usergroup.htm">User Group</a></li> </ul> </li> <li class="mainmenu"><a href="#nogo">Quality</a> <ul> <li class="menu"><a href="qualitypolicy.htm">Policy</a></li> <li class="menu"><a href="qualitycert.htm">Certificate</a></li> </ul> </li> <li class="mainmenu"><a href="customers.php">Customer Area</a></li> <li class="mainmenu"><a href="contacts.htm">Contacts</a></li> <li class="mainmenu"><a href="login.php">Log In</a></li> </ul> <br style="clear: left" /> </div> Works fine in everything we've tried, apart from Chrome...???? Okay this is kind of blowing my mind. Here is my CSS: Code: body { margin: 0px; text-align: center; } table { border-collapse: collapse; margin-left: auto; margin-right: auto; } td { padding: 0px; vertical-align: top; } td.banner { background-image: url("images/design/BANNER_TOP_LEFT.jpg"); background-repeat: no-repeat; width: 597px; height: 70px; } td.map { background-image: url("images/design/MAP_BACKGROUND.jpg"); background-repeat: no-repeat; width: 203px; height: 199px; } td.content { height: 100%; background: red; } here is my XHTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <script type="text/javascript" src="scripts/jquery-1.3.2.js"></script> <script type="text/javascript"> </script> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <table width="800"> <tr> <td class="banner"> <div id="login"> <p> Hello </p> </div> </td> <td rowspan="2" class="map"> <p>Hello</p> </td> </tr> <tr> <td class="content"> <div id="contest"> <p>Hello</p> </div> </td> </tr> </table> </body> </html> Here is what it looks like in each brower (attached). I want every browser to look like it does in Chrome.... I don't understand why the others are different? Thanks... (haven't been at developing for a while). Hi, i have just noticed a very strange cross browser issue. On several of my sites, i have applied simple css styling to my select boxes / drop down menus... some of this styling has been simply changing the color of the text in the drop down menu. The styling is fine in IE7+, FF (PC), Opera (PC), Chrome (PC), FF (Mac), Safari (Mac), Opera (Mac) BUT NOT ON Chrome (Mac) I can't understand how you can't apply simple css such as text color to Chrome on a Mac Has anyone else noticed this or found a solution to this... thanks in advance for your help |