Necro58 Posted August 27, 2008 Share Posted August 27, 2008 I am quite new to HTML and I'm not sure if this belongs in css or here. Want to make my links that are on my page red and I want my links in my sidebar and header to be white. Is this a problem of not separating them correctly in the coding or is there something I need to do in the styling? Quote Link to comment https://forums.phpfreaks.com/topic/121622-links/ Share on other sites More sharing options...
haku Posted August 27, 2008 Share Posted August 27, 2008 You can do this with basic CSS. Google 'CSS tutorials', it will probably be in the first 2 or 3 lessons. Quote Link to comment https://forums.phpfreaks.com/topic/121622-links/#findComment-627381 Share on other sites More sharing options...
Necro58 Posted August 28, 2008 Author Share Posted August 28, 2008 Sorry i just need to know how to make my header and sidebar links white while keeping my page links red. Quote Link to comment https://forums.phpfreaks.com/topic/121622-links/#findComment-627397 Share on other sites More sharing options...
TheFilmGod Posted August 28, 2008 Share Posted August 28, 2008 Header links: <a class="header_link" href="...">Link Name</a> Sidebar links: <a class="sidebar_link" href="...">Link Name</a> Css: a.header_link { color: red; } a.sidebar_link { color: #fff; } Quote Link to comment https://forums.phpfreaks.com/topic/121622-links/#findComment-627428 Share on other sites More sharing options...
haku Posted August 28, 2008 Share Posted August 28, 2008 Sorry i just need to know how to make my header and sidebar links white while keeping my page links red. I know that's what you needed (and what thefilmgod provided will do what you want), but if you are getting stuck on CSS that is that simple, you would do well to spend some time learning CSS. It's like trying to bake a cake when you don't yet know what flour or milk is. Or that you need two bowls etc. Quote Link to comment https://forums.phpfreaks.com/topic/121622-links/#findComment-627431 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.