justravis Posted November 5, 2008 Share Posted November 5, 2008 http://able2work.org/about.pwr Do you know why text-align: center; and text-decoration: none; are not functioning on the menu bar items? Thanks, Travis Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/ Share on other sites More sharing options...
JasonLewis Posted November 5, 2008 Share Posted November 5, 2008 Make this: .mu { color: #E19341; text-align: center; text-decoration: none; text-transform: lowercase; font-weight: bold; } This: a .mu { color: #E19341; text-align: center; text-decoration: none; text-transform: lowercase; font-weight: bold; } Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-682859 Share on other sites More sharing options...
justravis Posted November 5, 2008 Author Share Posted November 5, 2008 Thanks for your time. Text-Decoration is still not working. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-682997 Share on other sites More sharing options...
haku Posted November 6, 2008 Share Posted November 6, 2008 What is it that you are trying to remove using the text-decoration declaration? Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683355 Share on other sites More sharing options...
justravis Posted November 6, 2008 Author Share Posted November 6, 2008 Links without underlines that turn white when hovered over. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683388 Share on other sites More sharing options...
shlumph Posted November 6, 2008 Share Posted November 6, 2008 Hmm, try a span.mu { //Stuff } Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683395 Share on other sites More sharing options...
JasonLewis Posted November 6, 2008 Share Posted November 6, 2008 Spans don't stretch to the width of the parent. Make it a div instead of a span, that way it should center. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683396 Share on other sites More sharing options...
justravis Posted November 6, 2008 Author Share Posted November 6, 2008 Good point. I will keep that in mind in the future. Now I am only concerned with the text-direction not working in FF3 and hover not working in IE. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683417 Share on other sites More sharing options...
JasonLewis Posted November 6, 2008 Share Posted November 6, 2008 Just make it: a { //css } And see if works then. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683434 Share on other sites More sharing options...
haku Posted November 6, 2008 Share Posted November 6, 2008 Why are you putting spans inside your anchors? That is what is causing your troubles. Get rid of the span tags, and put all the CSS declarations onto the anchor itself. That will solve your problem. Or if you are really dead set on keeping the span tags for some odd reason, then apply the text-decoration to the anchor, not the span. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683460 Share on other sites More sharing options...
justravis Posted November 6, 2008 Author Share Posted November 6, 2008 CSS is not exactly my strength. If I want the menu links to be different than any other links, don't I need to use span tags? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-683855 Share on other sites More sharing options...
haku Posted November 8, 2008 Share Posted November 8, 2008 No. You give the links that you want to be different, a class name. For example, if all your a links are defined like this: a {color: blue;} And you have menu links that you want to be a different color, you write the menu links this way: <a class="menu_link">link text</a> Then in your CSS, you change the link color like this: a.menu_link {color: red;} By attaching the class name to the a, it overrides the original CSS for those links only. Basic CSS is really quite easy. Spend some time doing some tutorials (the ones on HTML dog are apparently good) and you can save yourself troubles like this. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-685125 Share on other sites More sharing options...
justravis Posted November 10, 2008 Author Share Posted November 10, 2008 o god..i was way off. thx for the html dog recomendation. Quote Link to comment https://forums.phpfreaks.com/topic/131468-css-text-attributes-not-working/#findComment-686497 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.