Author |
Topic  |
|
danielrichardson
VP-CART Super User
 
Australia
276 Posts |
Posted - November 09 2015 : 04:42:25
|
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
|
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
|
 |
|
ryo_best
VP-CART New User

90 Posts |
Posted - November 09 2015 : 15:14:28
|
Hi Vaheh, just want to make sure, so our css will be ovewrite is we put the line before other css ? |
 |
|
vaheh
VP-CART New User

USA
115 Posts |
Posted - November 09 2015 : 17:41:59
|
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 |
 |
|
danielrichardson
VP-CART Super User
 
Australia
276 Posts |
Posted - November 09 2015 : 22:56:57
|
Thanks guys, anyway can shopfrontpage_header.htm & shoppage_header.htm override by iframe? |
 |
|
ryo_best
VP-CART New User

90 Posts |
Posted - November 10 2015 : 22:28:59
|
hi daniel, I think you can use iframe as long your browser support it |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - November 16 2015 : 14:09:48
|
@daniel, what do you mean by ''override by iframe''? i''m not quite clear enough with this
*serj* |
 |
|
danielrichardson
VP-CART Super User
 
Australia
276 Posts |
Posted - November 19 2015 : 01:12:25
|
mean override by iframe css |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - November 24 2015 : 13:52:00
|
hm.. not sure but seems interesting to know and implement, waiting for person who good in css
*serj* |
 |
|
|
Topic  |
|