CSS - Dissapearing Text!
Hi
I have a CSS drop down menu but when I hover over one of the dropped down items the text the text on the original hover button dissapears. This is because the text is the same color as the rollover color. How could I make it so that the rollover text color is different? At the moment only the drop down items text changes color on hover Code: #navMenu { margin:0; padding:0; } #navMenu ul { margin:0; padding:0; line-height:30px; } #navMenu li { margin:0; padding:0; list-style:none; float:left; position:relative; background-color:#f0eccd; } #navMenu ul li a { text-align:center; font-family:Arial, Helvetica, sans-serif; font-weight:bold; text-decoration:none; width:95px; height:30px; display:block; color:#ff9a29; } #navMenu ul ul { position:absolute; visibility:hidden; top:30px; } #navMenu ul li:hover ul { visibility:visible; } #navMenu li:hover { background-color:#ff9a29; } #navMenu ul li:hover ul li a:hover { background:#ff9a29; color:#FFF; } #navMenu a:hover { color:#FFF; } Thanks Thomas Similar TutorialsI'm using some light box variation to overlay a form ontop of a page. When the form shows up the caret ( text cursor) doesn't. Any ideas? If you want to check it out: http://mark2.netriver.net/lightbox/index.php Mark This site..theres supposed to be a menu top-right. In IE it appears then dissappears when page finished loading! freehotsms(dot)com Html code can be viewed from the browser..heres my CSS-its quite messy and long! I think theres an JAVASCRIPT conflict but idk! THANKS..Darned IE..doesnt even support border radius Code: body {margin:0px; } input.rad {padding:5px; background:#0bb9ff; color:#000000; font-size:12px; font-family:Sans-serif; text-align:center;} #header { background:#ffffff; height:auto; border-bottom:5px solid #e71b11; } #inside {width:100%; padding-top:0px; height:211px; clear:right; /*border-top:5px solid #e2e2e2; border-left:5px solid #e2e2e2; border-right:5px solid #e2e2e2; -moz-border-radius: 1em 1em 1em 1em;*/ margin-right:auto; margin-left:auto; } #infooter {height:20px; width:700px; text-align:center; margin:auto; padding-top:10px; } #set {width:441px; margin-right:auto; margin-left:auto; background:url(images/info.png); height:68px; margin-top:5px;} td{font-family:arial; font-size:13px; } #out {width:100%; height:10px; background:url(images/bottom.png);} #rightlogin { float:right; -moz-border-radius: 0em 0em .5em .5em; padding:5px; background:#f7f7f7; border-left:2px solid #e2e2e2; border-right:2px solid #e2e2e2; border-bottom:2px solid #e2e2e2; margin-right:80px;} .right_ad{height:80px; width:auto; float:right; margin-top:auto; margin-bottom:auto; margin-right:10px;} .somepadding {padding-left:10px; padding-right:10px;} .eco{width:100%; text-align:center; padding-right:150px; } img.icon{width:60px; height:60px;padding-left:10px;padding-right:10px;} .center {margin-left:auto; margin-right:auto; width:468px;} .accountbutton { padding:5px; background:#0bb9ff; color:#000000; font-size:12px; font-family:Sans-serif; text-align:center;} #button {height:17px; width:80px; float:left; -moz-border-radius: 1em 1em 1em 1em; padding:5px; background:#0bb9ff; margin-right:10px; color:#000000; font-size:12px; font-family:Sans-serif; text-align:center; } a.top:hover{text-decoration:none; color:#ffffff; font-style:strong;} a.top:active{text-decoration:none; color:#ffffff; font-style:strong;} a.top:link{text-decoration:none; color:#ffffff; font-style:strong;} a.top:visited{text-decoration:none; color:#ffffff; font-style:strong;} a.in:hover{text-decoration:underline; color: #448; font-style:strong; font-family:arial; font-size:13px;} a.in:active{text-decoration:none; color: #448; font-style:strong; font-family:arial; font-size:13px;} a.in:link{text-decoration:none; color: #448; font-style:strong; font-family:arial; font-size:13px;} a.in:visited{text-decoration:none; color: #448; font-style:strong; font-family:arial; font-size:13px;} a.tin:hover{text-decoration:underline; color: #448; font-style:strong; font-family:arial; } a.tin:active{text-decoration:none; color: #448; font-style:strong; font-family:arial; } a.tin:link{text-decoration:none; color: #448; font-style:strong; font-family:arial; } a.tin:visited{text-decoration:none; color: #448; font-style:strong; font-family:arial; } a.n:hover{text-decoration:underline; color:#ffffff; font-style:strong;} a.n:active{text-decoration:none; color:#ffffff; font-style:strong;} a.n:link{text-decoration:none; color:#ffffff; font-style:strong;} a.n:visited{text-decoration:none; color:#ffffff; font-style:strong;} #left_logo {width:487px; height:211px; background:url(images/logo.png); float:left; margin-left:8%; } #hold {width:600px; float:left; margin-left:346px; } #login {width:500px; margin-right:auto; margin-left:auto; background:#f7f7f7; -moz-border-radius: .5em .5em .5em .5em; margin-bottom:10%; margin-top:20px; padding:5px; border:2px solid #e2e2e2; } #log {background:#f7f7f7; padding:10px; } input.o {height:35px; width:300px; font:28px arial; border:1px solid #cecece;} input.o:hover {height:35px; width:300px; font:28px arial; border:1px solid #ffd35b; background:#feff9c;} h2.login{ font-family:Georgia; color:#4E443C; text-transform: none; font-weight: 100; font-size:35px; margin-bottom:20px; text-align:center; color: #000; text-shadow: 0px 1px 1px #fff; margin-top:10px; margin-bottom:10px;} #menu_container {height:25px; padding:10px; border-top:3px solid #e2e2e2; width:auto; margin-right:10px; float:right; background:url(images/menub.png); -moz-border-radius: 0em 0em 1em 1em; border-bottom:1px solid #e2e2e2; border-left:1px solid #e2e2e2; border-right:1px solid #e2e2e2; } .newsletter{background:#ffffff; width:auto; padding:8px;} #menuright{height:25px; padding-top:80px; padding:10px; background:url(images/rig.png); width:auto; border-top:3px solid #e2e2e2; float:right; -moz-border-radius: 0em 0em 1em 1em; border-bottom:1px solid #e2e2e2; border-left:1px solid #e2e2e2; border-right:1px solid #e2e2e2;} #menu_button {width:auto; height:30px; background:#0bb9ff; float:left; color:#ffffff; font-size:13px; font-family:Sans-serif; padding-top:10px; padding-left:20px; padding-right:20px;} #maincont{width:950px; margin-right:auto; margin-left:auto; margin-bottom:10px; background:#f7f7f7; min-height:800px; padding-left:10px; padding-right:10px; padding-top:0px; border-top:2px solid #e2e2e2; -moz-border-radius: 0em 0em .8em .8em; border-left:2px solid #e2e2e2; border-right:2px solid #e2e2e2; border-bottom:2px solid #e2e2e2; } #bore {float:left; width:172px; height:74px; background:url(images/bore.png); clear:right; margin-top:98px; margin-right:10px; } .boretext {margin-top:34px; text-align:center; font-family:Georgia bold; color:#ffffff; font-size:15px;} #rightcolumn {width:250px; background:#f7f7f7; min-height:600px; padding-right:10px; float:right; margin-bottom:10px;} #social{padding-top:10px; padding-bottom:24px; width:190px; margin-right:auto; margin-left:auto;} #centercolumn {width:655px; padding:10px; min-height:500px; float:left; height:auto; background:#f7f7f7; margin-bottom:10px; } /* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */ /*-------------------------------------------------- REQUIRED to hide the non-active tab content. But do not hide them in the print stylesheet! --------------------------------------------------*/ .tabberlive .tabbertabhide { display:none; } /*-------------------------------------------------- .tabber = before the tabber interface is set up .tabberlive = after the tabber interface is set up --------------------------------------------------*/ .tabber { } .tabberlive { background:#ffffff; margin-top:1em; min-height:500px; .6em .6em 0em 0em; } /*-------------------------------------------------- ul.tabbernav = the tab navigation list li.tabberactive = the active tab --------------------------------------------------*/ ul.tabbernav { margin:0; padding:10px; background:#f7f7f7; font: bold 12px Verdana, sans-serif; } ul.tabbernav li { list-style: none; margin: 0; display: inline; -moz-border-radius: .6em .6em 0em 0em; } ul.tabbernav li a { padding:10px; margin-left: 3px; -moz-border-radius: .6em .6em 0em 0em; border-bottom: none; background: #DDE; text-decoration: none; } ul.tabbernav li a:link { color: #448; } ul.tabbernav li a:visited { color: #667; } ul.tabbernav li a:hover { color: #000; background: #AAE; border-color: #227; } ul.tabbernav li.tabberactive a { background-color: #fff; } td.images {text-align:center; color:#448; font: bold 12px Verdana, sans-serif;} ul.tabbernav li.tabberactive a:hover { color: #000; background: white; -moz-border-radius: .6em .6em 0em 0em; } /*-------------------------------------------------- .tabbertab = the tab content Add style only after the tabber interface is set up (.tabberlive) --------------------------------------------------*/ .tabberlive .tabbertab { padding:5px; -moz-border-radius:.6em .6em .6em .6em; border-top:0; /* If you don't want the tab size changing whenever a tab is changed you can set a fixed height */ /* height:200px; */ /* If you set a fix height set overflow to auto and you will get a scrollbar when necessary */ /* overflow:auto; */ } /* If desired, hide the heading since a heading is provided by the tab */ .tabberlive .tabbertab h2 { display:none; } .tabberlive .tabbertab h3 { display:none; } /* Example of using an ID to set different styles for the tabs on the page */ .tabberlive#tab1 { } .tabberlive#tab2 { } .tabberlive#tab2 .tabbertab { height:200px; overflow:auto; } #leftcolumn { margin-right:0px; background:#f7f7f7; min-height:500px; float:left;} .intro {height:auto; border:2px solid #e2e2e2; background:#f7f7f7; margin:20px;} .holdvideo {margin-left:auto; width:400px; margin-right:auto;} .int{width:450px; padding:10px; margin-right:auto; margin-left:auto;} .testing {font-size:12px; color:blue; float:right; margin:6px; font-family:Verdana; } .anothercontain{width:350px;margin-right:auto;margin-left:auto;} .containbutton {float:right;} .containbuttonl {float:left;} td.buttnreg {float:right; margin:6px; height:50; text-align:center; background:url(images/late.png); border:3px solid #ffffff; -moz-border-radius: 1em 1em 1em 1em; padding-top:11px; padding-bottom:11px; width:180px; color:#0261ab; font-family:Verdana; font-size:14px; font-style:strong; padding-right:6px; padding-left:6px;} td.buttnreg:hover {float:right; margin:6px; height:50; text-align:center; background:url(images/late.png); border:3px solid #ffffff; -moz-border-radius: 1em 1em 1em 1em; padding-top:11px; padding-bottom:11px; width:180px; color:#ffffff; font-family:Verdana; font-size:14px; font-style:strong; padding-right:6px; padding-left:6px;} .scroll{overflow:auto; height:600px;} p.red{ font-family:Serif bold; text-shadow: 1px 1px 2px #fff; font-size:20px; color:#000; padding-bottom:6px; margin-bottom:5px; padding-top:6px; text-align:center; background:#f3f3f3; border:2px solid #e2e2e2; } p.black{text-shadow: 2px 2px 3px #818173; font-family:arial; font-size:16px; color:#000; padding-bottom:10px; margin-bottom:5px; padding-top:16px; text-align:center; } p{font-family:Verdana; font-size:13px; color:#000000; margin-top:0px; } p.small{font-family:Sans-serif; font-size:12px; color:#5f5f55; line-height:160%; margin-top:0px; } p.blue{color: #448; font: bold 14px Verdana, sans-serif;} ul {font-family:arial; font-size:16px; line-height:15px; list-style-image: url(images/arrow.png); margin-right:7px; color:5f5f55;} li {margin-top:7px; margin-bottom:7px;} #footer {-moz-border-radius: 1em 1em 0em 0em; background:#f7f7f7; height:40px; clear:left; clear:right; border:2px solid #e2e2e2; width:970px; margin-right:auto; margin-left:auto; } #contain {width:900px; margin-left:auto; margin-right:auto;} table.fh {border-collapse:collapse; font-size:13px; color:#ffffff; text-decoration:none; width:950px; } .foothead { border-bottom:1px solid #f3f3f3; height:30px; } tr.top {padding-top:4px; font: strong Georgia,serif; font-size:15px; } th.top {height:30px; padding-right:50px; text-align:left; font: strong Georgia,serif; font-size:15px;} td.t {padding-right:50px; font-style:strong; padding:2px; } Hi :-) Im having some troubles with IE and it sometimes displaying and background image and then other times deciding not to: http://www.curlykale.co.uk/dentalplusnew/testingnew3.html the blue section at the bottom has a graduatied blue background which sometimes just refuses to load, but on refresh magicly jumps back into life, everything is fine with firefox and safari, just IE being a bit pesky If anybody could shed any light it would be greatly appreciated! Many Thanks :-) RiverCottage I am wokring with a complex form layout that is within a rounded corner box. The problem is that in Explorer it makes the H2 dissapear... I have bugtracked it down to line 71 in this document: Code: 71 float: left; I have published the files I used for bugtracking. With the error included: http://www.student.uib.no/~st11920/...1_included.html and with the troublesome line 71 outcommented: http://www.student.uib.no/~st11920/...1_excluded.html As you can see I really need that float. But is there a way to di this and not making my H2 dissapear? Good Morning All, Been having a slight problem with the visual in the screenshot below. The blue line is our H2, and the purple one is our H3, however, as you can see, the underline spans the entire width of the column, not just underneith the text, which is our requirement. ***As i am not allowed to upload a url as a new user, the underline is as follows. With the text centre aligned. text ----------------------------------------------------------- rather than text ------ and obviously by the css, the underline on the headers is a small image, repeated - x. Please see relevant css information. * (line 23) { margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0pt; padding-top: 0pt; padding-right: 0pt; padding-bottom: 0pt; padding-left: 0pt; } h2, h3, h4, h5, h6 (line 101) { font-size: 1.2em; font-weight: normal; padding-bottom: 4px; margin-top: 0.6em; margin-right: 0pt; margin-bottom: 0.8em; margin-left: 0pt; text-align: center; } .contentArea h2, #secondaryNavigation h2 (line 114) { background-color: transparent; background-image: url("../images/h2_gradient_bg.gif"); background-repeat: repeat-x; background-attachment: scroll; background-position: left bottom; color: #0066cc; } Many Thanks in advance. Marc. I would like to pop up the text, that is, make it bigger when the user hovers on it. but the problem everytime the text gets bigger, the whole row moves and the surrounding texts gets displaced. any idea ? tutorial? let me know if i need to explain more. can someone help me with this? here is the page&css I have been working on... the page file the css file I might be silly to use a template that I did on illustrator (with all the banner, boxes and navbar read and just use that as my container background. then I made some transparent boxes for puting in text, images or form elements. Is that why I am not able to select any other those things on the site? this is the first time I try using css to make the whole webpage, so I would appreciate any guidance...thanks!! I know how to position regular text using the in-line style "text-align:right", but when I try to do that with a link I get nowhere. Simplified example: Code: <html> <body> <td><p style="text-align:right">Google</p></td> <td><a href="http://www.google.com" style="text-align:right">Google</a></td> <td><a style="text-align:right" href="http://www.google.com">Google</a></td> <td><span style="text-align:right"><a href="http://www.google.com">Google</a></span></td> <td style="text-align:right"><a href="http://www.google.com" style="text-align:right">Google</a></td> <span style="text-align:right"><td><a href="http://www.google.com" style="text-align:right">Google</a></td></span> </body> </html> The first body line works fine to move the text to the right, but the link in lines 2-5 of the body are stuck on the left. Any suggestions? (My actual code invokes a class from a css page in a particular <td> and I'm trying to force a link in that <td> to the right using an in-line style; while I can do that for regular text I haven't found the secret of doing that for a link.) i have almost perfected the text wrap for this page.... http://defunctgames.com/helpfix/relevent.php4 problem is, i put a margin-top:50px on the image, and i want the text above the image, to flow all the way to the left. thus fully wraping the text. I saw a website that was throwing text that was written and recalling it with a link into a textbox...are there any tuts or anyone help me out with this one thanx aim rpduece Hi. See code below. Why does the outer SPAN in TABLE not grow with the image height. If the text is longer so it is forced below image then it looks as it should. Please also read some comments in the code. Code: <html><body><center><br><br> Why does image not force the outermost span to be at least as high as image?<br> If the text are long enough and gets below the bottom border of image it look good though.<br><br> NOTE: I need to put Image and text either within separate span or in same span as the examples below.<br> In my real application I'm using an <a href=" ...> around the outer span in examples below.<br> <br><br> <table border=1 cellpadding=0 cellspacing=0 width=200px><tr><td> <span style="display:block; background-color:#ffa827; padding-top:10px; padding-left:10px; padding-right:10px;"> <span style="display:block; float:left"> <img src="landscape.jpg" height="40px" width="40px" alt="" border="0"> </span> <span style="display: block; color: white;"> Text here. </span> </span> </td></tr></table> <br><br> <table border=1 cellpadding=0 cellspacing=0 width=200px><tr><td> <span style="display:block; background-color:#ffa827; padding-top:10px; padding-left:10px; padding-right:10px; color: white;"> <img src="landscape.jpg" height="40px" width="40px" alt="" border="0" style="float:left"> Text here. </span> </td></tr></table> </center></body></html> Hi, Howdo you get text and and image on the same line. I want text and 2 images on the same line but the image appears on the next line like a <br> has been entered. There is plenty of room for all data.Each has its own <div>. I'm having trouble with a page I'm working on- I posted here a few weeks ago with something sort of similar. This time, though, I'm at a loss, I've tried several different things but nothing worked. http://www.geocities.com/nny555/eup/newschedule.html As you can see, the div where the content is, the text is stretching right through the div. Is there any way to fix this? Based on the questions I see being asked and answered here, I'm concerned many of you will laugh at my ignorance, but here goes anyway. I want to know how to use CSS on just a little text. For example, let's say I want to render One-Two-Three-BOOM as text on a Web page, except that what I really want is for the BOOM part to be in a larger font and bold-faced. Can that be done using CSS? Can I select the BOOM part in Front Page 2003 and impose a CSS style to those four letters and only those four? Everything I try, based on the CSS file I'm using, results in applying the new style to all of the text within a whole paragraph. I want to be able to apply the style to just a little text at a time. As another example, I want to render the following two lines Johnny G. Doe 123 West South Street in such a way that, using CSS to control everything, I can get the second line to appear in a smaller font. I can get it to work if there's a <p> between the two lines, but not if I want to separate them with a <br>. I'm not asking whether it's a good idea to use CSS this way, I'm just asking how to do it. I will try to attach a file to this thread that shows the first several lines of the CSS file I'm using, in case that makes a difference. If this doesn't work, please let me know. Thanks. --Johnny Hmm, This is a problem that has plagued me for a while, but just recently decided to find a solution. Basically I like to single out words for empasis on certain pages. Well with EM that's fine. However on a new website I'm coding I need to do (TYPE 1 FONT) (TYPE 2 FONT) (TYPE 3 FONT). All are different decorations. Is there a way to create a tag for each word? Thanks. Is it possible to have text run around a div positioned with absolute positioning? is there anyway that i can rotate text, have it like it is on the spine of a novel, or DVD? Hey All, I'm running a wordpress site, and I need to have a section of text set to overlay some other text in the post areas. I have created a section of CSS : Code: div.products { border: 1px solid green; left: 485px; position: relative; top: -433px; width: 250px; } However on a long page, it shows in the wrong place and in a short place it shows in the wrong place... How do I get it to go from the very top of the visable browser area, and from the right of the browser area rather than a div area? |