marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Does CSS work in cpshop?

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Does CSS work in cpshop? »
Welcome, Guest. Please Login or Register.
12/15/17 at 00:41:08
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Does CSS work in cpshop?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Does CSS work in cpshop?  (Read 673 times)
tigaruk
Gold Dragon
****

Posts: 58



www.carboncloth ing.net
   

WWW E-Mail
Does CSS work in cpshop?
« on: 07/24/08 at 12:45:10 »
Reply with quote Modify message

I've created a template page that uses Css for it's layout. Yet when i add it to cpshop, cpshop ignores that it has a css page and all i get is the html code showing.

Does cpshop allow css and if so why is it ignoring mine?
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Does CSS work in cpshop?
« Reply #1 on: 07/24/08 at 13:48:30 »
Reply with quote Modify message

cpshop doesn't "ignore" CSS -- it follows the standard rules of CSS, precedence and inheritance.

A more common problem is simply referencing the stylesheet incorrectly.  Are you seeing any part of the stylesheet get used?  If absolutely none of it is working, it's much more likely that the stylesheet reference itself needs to be updated.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
tigaruk
Gold Dragon
****

Posts: 58



www.carboncloth ing.net
   

WWW E-Mail
Re: Does CSS work in cpshop?
« Reply #2 on: 07/24/08 at 15:23:50 »
Reply with quote Modify message

None of it is getting used at all. How would i update that reference? Whilst i have learnt (recently) how to add css to my site im not sure what i need to do to fix it.

My site is at www.casuallyhardcore.net - currently just the main page has css but the other pages will be using a slightly modified layout of that if that helps.

Cheers.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Does CSS work in cpshop?
« Reply #3 on: 07/24/08 at 15:25:10 »
Reply with quote Modify message

Try:

<style type="text/css" media="all">@import "/css/master.css";</style>
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
tigaruk
Gold Dragon
****

Posts: 58



www.carboncloth ing.net
   

WWW E-Mail
Re: Does CSS work in cpshop?
« Reply #4 on: 07/26/08 at 08:19:32 »
Reply with quote Modify message

Cheers. That worked great. Now one last final thing. All my images now have a line underneath them. How do i remove that. I don't have any boarders set to my images so not sure why it's showing or how to get rid of it.

http://casuallyhardcore.net/cgi-bin/store/cpshop.cgi/viewdesigns.carbonclothing.5345054+kill-the-zombies.html - see here for an example. The probably only seems to appear in Firefox 3 though...
Logged
hazeleyes7
Gold Dragon
****

Gender: female
Posts: 212



Labs Rock!
   

WWW E-Mail
Re: Does CSS work in cpshop?
« Reply #5 on: 08/11/08 at 06:46:32 »
Reply with quote Modify message

You need to add in the CSS style sheet:


Code:
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}


That will allow it to change the color of the text to red when someone hover's over it but will not underline the text. Of course, you can change the red to whatever other color you want or allow it to underline by changing the hover line.

Hope that helps!
Logged

https://shannonksteffen.com
http://www.dogwiregifts.com
http://www.8pawsup.com
http://www.angelcove.us
http://www.catwiregifts.com
sai
White Dragon
**

Posts: 19



Go Scots!
   

Re: Does CSS work in cpshop?
« Reply #6 on: 08/11/08 at 08:41:32 »
Reply with quote Modify message

Personally what I did was go to Other Display Options in the Admin panel and checked "hide cpshop's built-in stylesheets" to avoid conflicts and then just used my own stylesheet.
« Last Edit: 08/11/08 at 08:42:06 by sai » Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.