CSS - Can't Have It Both Ways
This is baffling me
Code: #sddm1{ margin: 0; padding: 0; z-index: 30; } #sddm1 li { margin: 0; padding: 0; } #sddm1 li a { margin: 0 1px 0 0px; text-decoration: underline; font-size: 11px; } #sddm1 li.sex { position:relative; right:24px; } #sddm1 div { position: absolute; visibility: hidden; margin: 0; padding: 0; height:14px; color:#fff; } #sddm1 div a { position: relative; left: 100px; padding: 5px 10px;. color:#fff; background:#115B8F; text-decoration: underline; } #sddm1 li.sex is the problem. If I view in FF, it appears over to the left by 24px. IE shows perfectly. I tried wrapping it in conditional comments but no effect: FF turns perfect and IE goes over to the RIGHT 24px; Code: <li><a href="why_you_should_help.html">Why you should help</a></li> <ul id="sddm1"> <li class="sex"> <a href="howyoucanhelp.html" onmouseover="mopen('m1')" onmouseout="mclosetime()">How you can help</a><div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="candy.html" style="color:#fff;">Candy Fundraiser</a> <a href="hotchocolate.html" style="color:#fff;">Hot Chocolate Fundraiser</a> <a href="pitbeef.html" style="color:#fff;">Pit Beef Fundraiser</a> <a href="hotrodcarshow.html" style="color:#fff;">Hot Rod Car Show</a> <a href="donations.html" style="color:#fff;">Donations</a> <a href="grants.html" style="color:#fff;">Grants</a> </li> </ul><div style="clear:both;"> Similar TutorialsI've seen different was to specify the CSS, two in particular: <style type="text/css" media="screen">@import "something.css";</style> and <link rel="stylesheet" href="something.css" TYPE="text/css" media="screen"> Why would one use one over the other? Say my page has this layout <div class="newsheader"><a class="white" href="...">devshed.com</a></div> and my sheet looks like this, div.newsheader { font-family: Verdana; color: white; background-color: #EFBE56; } a:link {color: #C6930A;} a.white: link { font-family:Verdana; color: white; } Couldn't the same be accomplished by div.newsheader a {color: white} and <div class="newsheader"><a href="...">Devshed.com</a></div> Notice I don't have to declare a class for the anchor tag. If I have a lot of these to change it could be a big time saver. But, which is better for CSS compatability, code readability, and possible future changes. Maybe its all about my personal preferences. Thanks I have a thumbnail image with a link below. When hovering over the link, I want the enlarged image to pop up. I've tried it 2 ways. Both are close, but neither works the way I want it. Perhaps someone can help tweak one of these options? Option 1 is he http://concrete-creative.com/temp/print/1.html **What I don't like here is that you can hover over a big, blank area below the link and the larger image pops up. I only want the linked text [JACK IT UP] to pop the larger image up. Option 1_B is he http://concrete-creative.com/temp/print/1_B.html **The problem here is the the larger image while INVISIBLE is sitting below the text [JACK IT UP] which is pushing my HTML table too wide. Can someone help me find the happy medium between these 2 solutions so it works the way I want it to? THANKS! |