newid Posted September 20, 2002 Share Posted September 20, 2002 Hello all, Ok, I'm getting a basic version of this (well, basic version of the loaded snapshot) setup for a friend. As with always with this software I did try to figure it out myself first, but I'm stumped. What I'm trying to do is, use a different style for the linktext and hover linktext for the body and the infoboxes. I've added a new element to the stylesheet called A.boxNavigation (as well as one for the hover) and wonder if there's a simple place where I can change the code so that ALL the infoboxes use these elements instead of the regular link elements for the body. Thanks Beau Link to comment Share on other sites More sharing options...
Guest Posted September 20, 2002 Share Posted September 20, 2002 What I'm trying to do is, use a different style for the linktext and hover linktext for the body and the infoboxes. I've added a new element to the stylesheet called A.boxNavigation (as well as one for the hover) and wonder if there's a simple place where I can change the code so that ALL the infoboxes use these elements instead of the regular link elements for the body. Hi Beau You can try adding those lines to the /catalog/stylesheet.css file: .boxText A { your_style } .boxText A:hover { your_style } I Hope it helps Link to comment Share on other sites More sharing options...
newid Posted September 20, 2002 Author Share Posted September 20, 2002 Correct. The elements have already been added to the stylesheet. I'm just hoping there is one place where I can change WHICH element the info boxes use. Link to comment Share on other sites More sharing options...
Guest Posted September 20, 2002 Share Posted September 20, 2002 Correct. The elements have already been added to the stylesheet. I'm just hoping there is one place where I can change WHICH element the info boxes use. You can look at /catalog/includes/classes/boxes.php That is where all infoboxes are created. Best regards Link to comment Share on other sites More sharing options...
newid Posted September 20, 2002 Author Share Posted September 20, 2002 Thanks for the info. At least now I know how to change the graphics on the corners of the boxes. But I'm still stuck on this. I think I'm gonna just tell him that the text in the boxes HAS to be the same color as the text in the body. I just can't see how to make them different without going into each php page and changing them manually. It seems like boxes.php would be the place where you could change those, but I don't see anyplace where it calls for the body class. Beau Link to comment Share on other sites More sharing options...
Guest Posted September 20, 2002 Share Posted September 20, 2002 Thanks for the info. At least now I know how to change the graphics on the corners of the boxes. But I'm still stuck on this. I think I'm gonna just tell him that the text in the boxes HAS to be the same color as the text in the body. I just can't see how to make them different without going into each php page and changing them manually. It seems like boxes.php would be the place where you could change those, but I don't see anyplace where it calls for the body class. Hi Beau Making the changes in stylesheet.css has not maked it work? I think I have not understand you yet. Making the changes I told you in that file, you will be able to have different colors for links and hovers in the infoboxes. Sorry if I still have not get what you need... Best regards Link to comment Share on other sites More sharing options...
newid Posted September 21, 2002 Author Share Posted September 21, 2002 Ok. Are you saying that simply by adding the elements that you mentioned to the stylesheet that it will work for me? In other words, those elements are already referred to in the individual pages or another config page somewhere. To my knowledge, style sheets work this way. You have the actual elements in the style sheet, and then you refer to those elements within the pages that make up the site. I already know how to add the elements to the stylesheet. I just need to know where they need to be referred to in the actual pages of the site. If there are already places within the pages of the site that are referring to elements for the boxtext, why is it not in the stylesheet that comes with osc? Don't get me wrong. If all I have to do is add what you've told me to add to the stylesheet to make it work, I'll do it and ask no questions! Believe me, if it's that simple, I'm all over it. Thanks again, hopefully, with your help, I'll be able to get this thing working. Beau Link to comment Share on other sites More sharing options...
newid Posted September 21, 2002 Author Share Posted September 21, 2002 Hi, I think I see what you're getting at now. Ahha! Ok, I do see a boxText entry in the stylesheet. So what you're saying is, I need to add something to that entry? You'll have to forgive my newbieness. I really do think that stylesheets are great. Even though I've never really gotten around to using them much. Should the thing you've told me to add be added as a class or an element? Thanks Beau Link to comment Share on other sites More sharing options...
newid Posted September 21, 2002 Author Share Posted September 21, 2002 Hello yet again, Well, as a newbie, I can tell every other newbie to never question advice given to you. It worked. Just like you said it would. Sorry for my stubborness. I wonder though. Why the boxText A. class wasn't already in the stylesheet? It probably has something to do with the fact that there was already a boxText class in it, and that's all that mattered. I'm probably just showing my ignorance by even wondering. Anyway, thanks for the help man. I appreciate it greatly. My buddy will be so pleased that I (I mean, YOU) were able to get this figured out! Beau Link to comment Share on other sites More sharing options...
Guest Posted September 21, 2002 Share Posted September 21, 2002 Hi Beau I am happy it worked I dont know why those styles aren't defined in the stylesheet.css, but I think they arent just because nobody needed them but you :) Best regards Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.