CSS - Help With Functionality/debugging
Hello i created a website for my trainer and i am having pretty much trouble fixing a bug with the menu li:current and the compatability in various browsers.
If someone please could check my website for errors and correct them? Its really a small website. I dont know what to do anymore, i tryed so much and nothing seems to work. Thanks in advance. my site is located at Code: http://hexagon.110mb.com/index.html Similar TutorialsHello all, I was almost all done with my web site until I ran into a few surprises in IE... http://pages.infinit.net/emilierv/branding.htm http://www.ervdesign.com/styles.css These are my example pages. I have 2 main problems. First, when I hover on a text link, I mean for its background color changes. In Firefox, this behaviour doesn't seem to be transmitted to images but in IE, it is! This makes a line of color appear when you hover over either arrow buttons. I understand the logic behind this, but I don't know what I can do to exclude images from this behaviour. Second, I have a whole lot of mess going on in the spacing of my text. Both browsers seem to be consistant in the way they display the text but they differ so much from each other. I have some relative positioning going on because I want to keep the numbers (1/7) and the arrow buttons lined up to the coordinates in the nav bar. -IE seems to ignore the fact that the PDF links and the comments are in seperate cells. If I add no space, they overlap! This results in too much space in Firefox. -IE seems to push everything up top as the projects are browsed, resulting in a constant change of height in my arrow buttons. My knowledge of CSS is limited. I really don't know a lot about div, clear, float. I am wondering if my solutions might lie in one of these tags? I would appreciate any help! Thanks a lot, Emilie In my Error console I am getting this: Expected ';' to terminate declaration but found '}'. Declaration dropped Expected declaration but found '-6px'. Skipped to next declaration. Expected ":" but found ";". Declaration dropped Below each error message is a url from the app NOT a style file name and no line number so I assume those are inline style declarations not separate files. I could fix these if I knew how to find them. The -6px is kind of unusual so I found it and fixed it, sure enough it was a typo, but the other errors don't really give me anything I can search for. Please give me some pointer how to debug this. Thanks i have a question about blockquote styles. its being used in my blog: http://www.insanityonline.blogspot.com/ this is the css thats used: Code: blockquote { margin: 0 0 0 30px; padding: 10px 0 0 20px; font-size: 88%; line-height: 1.5em; color: #666; background: url(http://www.blogblog.com/tictac/quotes.gif) no-repeat top left; } ok i made 2 new images of smaller quote marks and rotated. now is there a way to get say the pics to have one in the top left AND bottom right as the words were in a quote?? I'm almost finished with my first page, the others should be easier but before moving on, I would like to debug some problems and truthfully I'm not sure where to even begin. I'm ready to debug issues is IE6. It looks nothing like it should. My main menu is vertical and I'm really confused as to why? I know that IE6 does not support fixed footers, so i was curious as to how I could work around that? my embedded video in my #right div in FF overlaps the fixed footer, and putting a z-index on #object did not work? Lastly, I would like to know if there is a way to make my #mainbody div the same size as my #left and #right depending on which has more content. Basically I would like all three the same size at all times. Thanks for your advise http://www.lonniebruhn.com/sitelab LB I've inherited a page that uses CSS and Javascript to drag and drop objects. For reasons unknown, this feature has stopped working. My investigation has determine that there is a CSS error involved: Error in parsing value for 'left'. Declaration dropped. Error in parsing value for 'top'. Declaration dropped. Since this is an inherited page I am not sure what the problem really is but the only references to left and top a Code: floater = document.getElementById("floater"); . . . floater.style.left = fx; floater.style.top = fy; . . . fx = floater.style.left = active_card.x; fy = floater.style.top = active_card.y; I'm pretty sure it must be from one or both of these statements. I tried adding +"px" to each just in case but that didn't help (nor did I expect it to because it was working at some point in the past and no, I don't know what may have changed). Not being a CSS expert I need some help debugging this problem. FWIW, here is the "floater" HTML object: Code: <img id=floater src=../cards/large/bottom01.gif class=hidden style="position:absolute"> Any help pointing me in the right direction would be greatly appreciated. so im working on the relatively lame site for some pocket cash, and ive run into a weird bump in the road with CSS. if one uses safari or firefox on a mac or firefox on a PC and goes to this page they will notice that rolling over one of the squares in the menu will cause a colored border to appear. this works on all browsers ive tried except windows IE. im stuck, ive tried some thing, but have never had this problem in the past. i have included the css in the index page, so one can view it w/ by viewing the source. ok, i really am at my wits end here and could use any assistence you guys can give. this is a little complicated to explain, but here goes. i have this page: http://www.woowooberry.com/photo.html the page uses a style sheet called style.css. the problems: 1. i just realised that my ie6 browser at work makes this page use an old version of the stylesheet, even AFTER i uploaded the new one to my site via ftp. when checking the site at home, this is not an issue. but it is an issue on my work computer and every other computer at work where the site is loaded for the first time! ghosts in the shell? i have no clue. 2. the little boxes on the above page represent links to images. the boxes should be a dark grey and only turn blue AFTER being visited. this does not happen on any computer. or they are grey, for about one round...meaning if i refresh the page they all turn blue without being visited. the following is the TRUE css i have for it (which, from problem #1, may not be the css your computer uses...as i said, i do not know): Code: .newbutton:link { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: tahoma,arial; BACKGROUND-COLOR: #a4a4a4; TEXT-DECORATION: none } .newbutton:visited { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: tahoma,arial; BACKGROUND-COLOR: #00f4e0; TEXT-DECORATION: none } .newbutton:hover { FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: tahoma,arial; BACKGROUND-COLOR: #f44b39; TEXT-DECORATION: none } .newbutton:active { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: tahoma,arial; BACKGROUND-COLOR: #00f4e0; TEXT-DECORATION: line-through } ok. couple of other problems but i'll leave that for later. these two are the major ones. again, any help you guys can give would greatly lower my blood pressure at this point. thanks. Hey everyone, I'm learning CSS right now and recoding my existing site to use it. I've come into a few stumbling blocks and could use some help. First off, the site is meldstudios.com/newcode I am having a problem getting my sub nav to show up. I need it to function as well, but right now I'd just like to see it. In addition, the html text that is below the divs is supposed to overlay on top of it. Right now, that isn't happening and I believe it is pushing the footer out of whack. I'm not sure if I am not calling it in correctly in the html or what, but something is off. Finally, the thumbs and both navs have rollover states. I have read about using a transparent gif to set the hover states and visited states, but do people still use gif's? What is the best way to go about creating rollovers in CSS without the need for java script. My live site is meldstudios.com Take a look as that may explain what I am trying to do. Any help is greatly appreciated. I have included the parts of the CSS that are relevant below. #pagenav { width: 599px; height: 35px; margin-top: 45px; z-index: 100; float: left; } #about { background:url(images/aboutButton.jpg) no-repeat top left; float: left; width:113px; height:35px; } #portfolio { background:url(images/portfolioButton.jpg) no-repeat top left; float: left; width:120px; height:35px; } #resume { background:url(images/resumeButton.jpg) no-repeat top left; float: left; width:96px; height:35px; } #downloads { background:url(images/downloadsButton.jpg) no-repeat top left; float: left; width:134px; height:35px; } #contact { background:url(images/contactButton.jpg) no-repeat top left; float: left; width:133px; height:35px; } /*------------ sub nav --------------------------------------------------- */ #subnav { width: 598px; height: 23px; margin-top: 50px; z-index: 101; } #identity + branding { float: left; width:188px; height:23px; background-image: url(images/identityButton.jpg); background-repeat: no-repeat; } #print + advertising { float: left; width:171px; height:23px; background-image: url(images/printButton.jpg); background-repeat: no-repeat; } #applied design { float: left; width:127px; height:23px; background-image: url(images/appliedButton.jpg); background-repeat: no-repeat; } #web design { float: left; width:114px; height:23px; background-image: url(images/webButton.jpg); background-repeat: no-repeat; } /*------------ content --------------------------------------------------- */ #content { width: 902px; height: 495px; height: 650px; float: left; margin-left: auto; margin-right: auto; } #leftColumn { width: 599px; height: 495px; float: left; } #largeGraphicArea { width: 599px; height: 363px; float: left; } #smallBoxWithText img { width: 599px; height: 142px; float: left; position: absolute; top: 0px; left: 0px; z-index: 1; } #smallBoxText p { width: 400px; padding-left: 20px; padding-right: 20px; z-index: 3; float: left; text-align: left; } /*------------- right column --------------------------------------------------- */ #rightColumn { width: 301px; height: 495px; float: left; } #titleGraphic { width: 301px; height: 361px; float: left; z-index: 1; } .titleGraphicText p { width: 250px; padding-left: 10px; padding-right: 10px; z-index: 2; float: left; } I want a background image on an element that is a specific size where the background changes when hovered and the element functions as a link. I don't want text for the link to be visible. I tried doing this as an a tag but the background is only visible for the height of the text unless I make the text huge and then make it transparent and that doesn't work in IE as the text is still visible I want it to be a specific width and height. It is on the opposite side of a nav bar from my main nav that is a horizontal list so I want is to retail the size of my nav. I don't want the background to be two different images for plain and hover so I was using background placement and moving the bg image on hover. I thought I could then do this as a single li but I have not had success. What is the simplest way to achieve this? I would like to keep the text somehow for accessibility but not have it visible. |