FridayRain Posted September 11, 2007 Share Posted September 11, 2007 I'm having some trouble with this. Is it even possible? Googling doesn't come up with anything useful. I have a container div for displaying blog entries, and the entries themselves are displaying in another container div. Both divs use the container div's link styles. However, after all the entries are displayed, but still within the container div, I want to display the page links for navigating the other pages of entries, but no matter what I do, the links remain the color of the container div's style. All I've really done is change font size and the color of non-linked text. Quote Link to comment https://forums.phpfreaks.com/topic/68773-solved-link-styling-for-divs-within-a-div/ Share on other sites More sharing options...
moberemk Posted September 11, 2007 Share Posted September 11, 2007 .container a:link { } .container a:visited { } .container a:hover { } .container a:active { } Try using this. If this kind of styling doesn't work, then it's a specificity issue-something in your CSS code is more specific about what it is styling, and it overrides this. Try showing us the CSS next time. Of course, it could also be a code typo, where you misspelled the class name in the div or the CSS. That's happened to me more times then I care to count. Quote Link to comment https://forums.phpfreaks.com/topic/68773-solved-link-styling-for-divs-within-a-div/#findComment-345897 Share on other sites More sharing options...
ToonMariner Posted September 11, 2007 Share Posted September 11, 2007 div div a {} may help you.... Quote Link to comment https://forums.phpfreaks.com/topic/68773-solved-link-styling-for-divs-within-a-div/#findComment-345907 Share on other sites More sharing options...
FridayRain Posted September 11, 2007 Author Share Posted September 11, 2007 Ah, the <div> <div> method worked. I tried that yesterday but I only included id/class punctuation for the first div and not the second. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/68773-solved-link-styling-for-divs-within-a-div/#findComment-346430 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.