Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 css override
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 09 2015 :  04:42:25  Show Profile  Reply with Quote
Hello support,

I want my-style.css is not overridden by basic-style.css, and wants all styles to be loaded by my-style.css, it Possible?

Thanks,
Daniel

vaheh
VP-CART New User

USA
115 Posts

Posted - November 09 2015 :  13:43:21  Show Profile  Visit vaheh's Homepage  Reply with Quote
Hi Daniel,

Create another css file and name it whatever you want.
Add this file to shopfrontpage_header.htm & shoppage_header.htm right after loading all other css files NOT before them.

Then:
1- Make sure you are considering CSS selectors specificity. Refer to:
http://www.w3.org/TR/CSS2/cascade.html#specificity

2- By using browser developer tools find out exact css selector assigned to that element by VPASP. Copy and paste the selector and its attributes to the css file you have created and change the value there.

Thanks,
Vaheh
Go to Top of Page

ryo_best
VP-CART New User

90 Posts

Posted - November 09 2015 :  15:14:28  Show Profile  Reply with Quote
Hi Vaheh, just want to make sure, so our css will be ovewrite is we put the line before other css ?
Go to Top of Page

vaheh
VP-CART New User

USA
115 Posts

Posted - November 09 2015 :  17:41:59  Show Profile  Visit vaheh's Homepage  Reply with Quote
Hi Ryo,

Yes if both CSS files are using same selector. Priority is with inline CSS. If you are using CSS file then make sure your CSS file is the last css file that is loading in header.

Best,
Vaheh

Edited by - vaheh on November 09 2015 17:43:53
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 09 2015 :  22:56:57  Show Profile  Reply with Quote
Thanks guys, anyway can shopfrontpage_header.htm & shoppage_header.htm override by iframe?
Go to Top of Page

ryo_best
VP-CART New User

90 Posts

Posted - November 10 2015 :  22:28:59  Show Profile  Reply with Quote
hi daniel, I think you can use iframe as long your browser support it
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - November 16 2015 :  14:09:48  Show Profile  Visit serjtankian's Homepage  Reply with Quote
@daniel, what do you mean by ''override by iframe''? i''m not quite clear enough with this






*serj*
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 19 2015 :  01:12:25  Show Profile  Reply with Quote
mean override by iframe css
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - November 24 2015 :  13:52:00  Show Profile  Visit serjtankian's Homepage  Reply with Quote
hm.. not sure but seems interesting to know and implement, waiting for person who good in css






*serj*
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00