CSS - Probs With Classes Of <a> In Ie
hey all, i have a image which is a link and i wanted to change the blue box around it to something more inkeeping with the site. So i did this css
Code: a.greenToblack { color:#000000; font-size:13px; text-decoration:none; font-weight:600; font: Georgia; } a.greenToblack:link {color:#000000; font: Georgia;} a.greenToblack:visited {color:#000000; font: Georgia;} a.greenToblack:hover {background-color:#667138; color:#667138; font: Georgia;} and impletmented it as so Code: <a class="greenToblack" href="product.php?range_id=<?php print ($row->range_id) ?>"><img src="images/tmbnail/<?php print ( $row->tmbnail )?>" width="75" height="75" border="2"></a> it works perfectly in FF but not in IE..... any ideas why?? thanks RF Similar Tutorialsfriends i have table.. that table corner must be in the curve form.. i dont know to do.. plz send the links for my problem curve edge is my output.. for that related css link plz thanks in advance Hello why wont this change the effects of my td Code: #tabs td.start { background:url("/pdp/images/style_images/default/section_on_left.gif") no-repeat left top; } #tabs td.start a { background:url("/pdp/images/style_images/default/section_on_right.gif") no-repeat right top; font-weight:bold; } #tabs td.start a:link { color:#fff; } #tabs td.start a:visited { color:#fff; } #tabs td.start a:hover { color:#64bfdb; text-decoration:underline; } #tabs td.start a:active { color:#64bfdb; } any help much appreciated Hi all, I've always learned what I know (which isn't all that much, but wtf) from trying to fathom the source code of cool sites I visit and then attempting to implement those things I like into my own page. I recently visisted a very cool site that uses a CSS drop down menu. The only problem is it's got one level and I want more than that. I've attempted to tweak the code through trail and error and my basic basic understanding of CSS, but to no avail. When you roll over the top level menu, the secondary displays as it should but the 3rd also displays before you roll onto the link that should activate it. I'm sure I'm just missing somethign small but after working on this for a number of days, trying to figure it out, I appeal to you all for help! Thanks in advance for your support and suggestions! Here is the HTML code for the section (I edited it just so you can see what I'm looking for) <div id="navigation"> <ul id="nav"> <li class="nav"><a href="" onclick="return false">Novels</a> <ul class="subnavnovels"> <li class="subnav"><a href="" onclick="return false">Lawson Vampire Novels</a> <ul class="subsubnav"> <li class="subsubnav"><a href="fixer.html">The Fixer</a></li> <li class="subsubnav"><a href="invoker.html">The Invoker</a></li> <li class="subsubnav"><a href="des.html">The Destructor</a></li> <li class="subsubnav"><a href="syn.html">The Syndicate</a></li> </ul> </li> </ul> </li> And here's the CSS code for the nav section: /* NAVIGATIONAL ELEMENTS */ #nav {z-index:3;} #nav a {color:#FFF;text-decoration:none} #nav a:hover {color:#07B6D0;text-decoration:none} li.nav {margin-right:24px;} ul { /* all lists */ padding: 0; margin: 0; list-style: none; } li { /* all list items */ float: left; position: relative; } li ul { /* second-level lists */ display: none; position: absolute; top: 1em; left: 0; padding:3px 7px; border:1px solid #27444C; } li ul ul { /* third-level lists */ display: none; width: 100px; position: absolute; top: 0; left: 140; padding:3px 7px; border:1px solid #27444C; } li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */ top: auto; left: auto; } li:hover ul, li.over ul { /* lists nested under hovered list items */ display: block; clear:left; background:url(menubg.png); } .subnavnovels {width:140px;} .subnavshorts {width:140px;} .subnavnonfic {width:160px;} .subnavother {width:170px;} .subnavcommunity {width:170px;} .subnavabout {width:100px;} .subnavcontact {width:100px;} li.subnav {float:none;} li.subsubnav {display:inline;} Hi, I'm having problems with FireFox (or rather it's having problems with my coding). If you go to he http://jigsaw.w3.org/css-validator/...&usermedium=all It's all valid css but http://www.wnv2.com/v11.php shows up funny in FF but looks great in IE/Maxthon. View course for html, but the css code is in the validation link, Any help would be great! Thanks Please let me know if I need to post my questions more clear. I have read the "how to post css questions" but I don't seem to be getting any responses. BTW: if the site is working in IE for you please let me know. I appreciate your help. I'm new to CSS and this website. I have been working on a website that seems to be displaying properly in Chrome, FireFox, Opera and Safari. I am having problems getting it to display properly in Internet Explorer. To see the proper lay out look at it in Safari, Opera, FF or Chrome. the page is at : http://www.tmdessertworks.com/neotmtest/menutest.html Here is the CSS: Code: <style type="text/css"> <!-- body{ color: #e8d898; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #111111; } td{ vertical-align:top; width: 194px; } td.menutitle{ width: 700px; } td.thumbnail{ width: 150px; text-align:right; } .navmenu1{ text-align:center; padding-left: 170px; background: url(sitegrax/menuback_1.jpg); } .menu1 { padding-left: 22px; padding-top: 6px; padding-bottom:6px; background: url(sitegrax/menuback_1.jpg); } .endcap { text-align:center; padding-left: 64px; background: url(sitegrax/menu_bottomcap.jpg); background-repeat:no-repeat; } .style { color: #FF6600; font-style: italic; } --> </style> I have validated my CSS and HTML and I have searched the forums but don't quite know what is happening to fix the problems: 1. Backgrounds not filling to 800px 2. Small spaces between <div> tags 3. Top navigation menu displaying vertical and not horizontal. Thank you for your help Hi Folks, Anyone have any idea how I can solve this problem? I'll be most grateful. I'm trying to position a DIV element to the top-right of another fluid DIV? The blue-toned photo [please see screenshot] is going right outside of the white content area. What it should look like What it sadly does look like If I get this working, will I have problems with the body text in different pages? Say, if there's no photo, can I get the text to move up automatically? The photo is not within the flow so I have the text at a fixed position. Finally, the footer with [top-of-page arrow] seems detached when the browser is maximised. Hoping someone can help - I've been at this a week. John Hi i am currently designing my first webby with out using frams and tables for the layout (using dreamweaver 2004mx) and i am now using layers and css for the layout but my problem is this: i used to use an iframe to link things from my nav bar to load in. but now i am not using frames is there anyway to make content load inside a layer on the page or do i have to make separate pages for each link and expect it to load a new page each time? i know that usin css is alot faster than using frames but even when linking to seperate pages you get that little blink as the pages switch.... any help what so ever would be much appreciated thanks in advance N3cr0 The troubled site in question First, regarding the float issue. I did so well on this site earlier with the floats that I zipped right through it in about an hour. Looked great. After more updating and revision, I discover that in IE6, it looks great, but Net7, Fire1, and Opera 6, the floats (left and right column) are driving into the subcategory header above. I set the top margins for the floats to 85 pixels which makes it look ok in N/F/O, but lousy in IE. So I then used the * character for IE's setting. It looks fine. Question though, what am I missing and must I create the two settings for the different browsers? I'm not quite sure what changes I had made caused such a different affect. Secondly, when I open the site on IE, I get that stupid ActiveX message on top. What is causing this and how do I resolve it? That will be a problem and I guess is more of a priority to me than the floats. Thanks to all for your help. I love this board! Tim Hi people I have been developing a new cms system www.spindogs.co.uk The pages work using an autostretch facility but for some reason Firefox,Safari and IE5 Mac wont stretch. The bacground stays a set length? I initially thought it was the DOCTYPE so messed around with that but it doesnt seem to be that either? Can anyone help me please!!!! Hi. Three issues with this menu - I've been trying to get a horizontal hover/nested list to work where the submenus are displayed inline underneath the main menu. 1. I've got the arrangement fairly close in FF, but in IE the top level items are jumping around all over the place on hover. 2. The javascript came from alsacreations, and seems to work pretty easily, but the submenus fail to disappear on rollOut unless you are going to another of the menu items. Any ideas? 3. Do you think there is anyway of leaving the top level links in their "active/hover" state when the mouse has moved to the submenus? So the coloured background that appears on hover stays there whilst hovering over the submenus? I've isolated the xhtml, styles and script into a page (it's a rework of a current page and is pretty incomprehensible in-situ!) at http://www.prioritypie.f2s.com/KSAV6/menuTest.html. Cheers for any advice. And I forgot to ask what the issue is with IE and transparent borders - they seem to appear black and of variable width! So I've tried to make my site www.thespinzone.com work for all browsers, but I'd settle for IE & Mozilla, however I have run into a big problem with IE (and it appears ONLY 7+) and Mozilla, all versions. First the IE problem is that it's adding a horizontal scroll bar on my main page, not the others, and I can only assume it has something to do with the RSS headlines positioning? screen shot 1 Now I'm having 2 problems with Mozilla: 1st: No matter how I try manipulate the CSS, the headlines won't float to the right, and they end up being squeezed next to my picture which is a waste of space and looks silly. Here is a screen shot of how it looks. Ideally I want the headlines to be on the right hand sight of the page, as far as it can be. I WANT the layout to look, MINUS the horizontal scroll bar like that first IE screen shot. 2nd: clicking or right clicking on any of the 'headline' items, moves that entire part underneath my picture and I have no idea why? In case it doesn't do that with your mozilla version, here's a screen shot The relevant CSS is on the index page so rather than me cut & paste it (unless that's preferred) then 'view source'..... I appreciate any and all help and advice. Thanks Hi people, critique this piece of code for a yellowheader and a blue id and tell me what the problem is. It seems both end up as black <style type="text/css"> h3.Big Bird{color:yellow;}/*Class Font#CookieM{color:blue;}/*Id*/ </style> <h3 class="BigBird">Big Bird</h3> <font Id="CookieM">Cookie Monster</Id> Hope to hear from you soon. kaz ok here is the question. i have done two websites, i have tested them out in multiple browsers and all seemed fine. When i test them in IE the text runs into to image. I am using div classes to control the image. Any insight on why this is happening would be greatly appreciated and hints or solutions would be more then welcomed. I am banging my head against a will trying to figure this out. Thankyou All I've been trying to clean up my code and in the past I never seemed to make use of predefined html element tags like the H1-H6...and instead I just find that I just make a new class but I was wondering if there is anything wrong with using the H-tags in place of a few classes? Obviously it would have to make logical sense to use, but I'm wondering if there has been any changes in how browsers use those tags in the past few years as I wouldn't want to be using an outdated, soon to be phased out element. heya this doesnt seem to work the second class complety overwrites the first ? id like it to append the second one ? any ideas eg main.css .main-header-back { background-repeat: no-repeat; background-position: 793px 0px; overflow: hidden; } index.php .main-header-back { background-image:url('/images/main/image.gif'); } I have a question. If i create a custom class : p.q {color: black !important;} and a user has a css with the fallowing code: p {color: red !important;} will my text <p class="q">My text</p> be red or black and how can i prevent the user css from overriding my css I cant seem to get my cellpadding working for tables, what do i have to input. I have tried: .header {background:#2D759F; width:100%; cellpadding:5} all the others work, jus the cellpadding which does not. is it possible to use two classes for one element. I want to use two classes for one element I thought perhaps it is possible not to create another class to combine both of them. perhaps there is a form of superclass and subclass in css. I have encountered a really annoying bug in IE6 and would be very interested to know if anyone else hase encountered it and found a solution. Look at the following example: PHP 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" lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css" media="screen"> .class1,.class2,.class3 { border: 1px solid black; width:400px; line-height: 100px; text-align: center; } .class1 { background: none; } .class2 { background: red; } .class3 { background: blue; } .class1.class2.class3 { background: black; } </style> </head> <body> <div class="class1">Test Content 1</div> <div class="class2">Test Content 2</div> <div class="class3">Test Content 3</div> <div class="class1 class2 class3">Test Content 4</div> </body> </html> The four divs should all be different colours as follows: div1: transparent/white div2: red div3: blue div4: black However, both divs 3 & 4 are black. The rule: .class1.class2.class3 { background: black; } is incorrectly effecting divs with only .class3. Any ideas? Hello, I have 3 type of h2 headers on my web site: 1 - Post titles on a blog (Ex: <h2>New documents available for download</h2>) 2 - Content section title (Ex: <h2>Contacts</h2>) 3 - Sidebar content section title (Ex: <h2>Publicity</h2>) I am trying to build my CSS to style the 3 different headers but I am having some problems. I could use: h2.Post, h2.Content and h2.Sidebar or: h2 (for maybe Post? This would be the base), h2.Content and h2.Sidebar or even: h2 (for Post), h2.Content for content and then h2.Sidebar to change Content class so it fits Sidebar. So a section in sidebar would be: <h2 class = "Content Sidebar">Publicity</h2> Could someone help me in deciding how should I structure my classes? Thank You, Miguel |