liamloveslearning Posted July 4, 2008 Share Posted July 4, 2008 Hey everyone, im presuming this is really simple only I havent managed to find the answer on google or work it out for myself; what it is is that I have my web page full of links etc which are controlled by the pages styles, etc all links are white and underlined; only then I have an include which is my nav bar; my navbar links are controlled by my css file which chooses how they look; however when theyre on my page they take up the appearance of mydefault page links, white. is there a way to stop this? or do i just need to give all the links a class of their own? Quote Link to comment https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/ Share on other sites More sharing options...
fanfavorite Posted July 4, 2008 Share Posted July 4, 2008 If you include it into the page, it will use the CSS of that page. You will need to add a class in order to change the default bahaviour. Quote Link to comment https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/#findComment-581739 Share on other sites More sharing options...
liamloveslearning Posted July 4, 2008 Author Share Posted July 4, 2008 sorry im a bit confused, so what needs a class adding to it? all the links on the page? and thanks! Quote Link to comment https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/#findComment-581742 Share on other sites More sharing options...
fanfavorite Posted July 4, 2008 Share Posted July 4, 2008 You will need to create a class for all links in your nav bar. a.navbar { text-decoration:none; color: #000000; } Then use this in the code <a href="page1.php" class="navbar">Page 1</a> <a href="page2.php" class="navbar">Page 2</a> <a href="page3.php" class="navbar">Page 3</a> Quote Link to comment https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/#findComment-581805 Share on other sites More sharing options...
liamloveslearning Posted July 6, 2008 Author Share Posted July 6, 2008 brilliant, thanks Quote Link to comment https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/#findComment-582821 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.