arslantabassum Posted May 7, 2014 Share Posted May 7, 2014 (edited) I have this in Global.css file... Line number 6442 ul.step li { float: left; width: 20%; text-align: left; border: 1px solid; border-top-color: #cacaca; border-bottom-color: #9a9a9a; border-right-color: #b7b7b7; border-left-width: 0px; }------------------------------------------I want to override it when installing my Module, with second line like Just change 20% to 19%.. How to do that...???? ul.step li { float: left; width: 19%; text-align: left; border: 1px solid; border-top-color: #cacaca; border-bottom-color: #9a9a9a; border-right-color: #b7b7b7; border-left-width: 0px; } Or How to override whole global.css file, But i need to change just 20% to 19% .....All suggestions are appriciated........ Edited May 7, 2014 by arslantabassum (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 create module css stylsheet file, include it to the header section and create there styles that you want. for each style add !important modifier. 1 Link to comment Share on other sites More sharing options...
arslantabassum Posted May 8, 2014 Author Share Posted May 8, 2014 create module css stylsheet file, include it to the header section and create there styles that you want. for each style add !important modifier. i have module.css file and it's included in header section... Now what's next??? will it be override the global.css property... if i write in module.css file like this.... ul.step li { float: left; width: 19%; text-align: left; border: 1px solid; border-top-color: #cacaca; border-bottom-color: #9a9a9a; border-right-color: #b7b7b7; border-left-width: 0px; } Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 browser will use first defintion, so it will be definition provided in global.css file you can change that with code like: ul.step li { float: left!important; width: 19%!important; text-align: left!important; border: 1px solid!important; border-top-color: #cacaca!important; border-bottom-color: #9a9a9a!important; border-right-color: #b7b7b7!important; border-left-width: 0px!important; } Link to comment Share on other sites More sharing options...
arslantabassum Posted May 13, 2014 Author Share Posted May 13, 2014 browser will use first defintion, so it will be definition provided in global.css file you can change that with code like: ul.step li { float: left!important; width: 19%!important; text-align: left!important; border: 1px solid!important; border-top-color: #cacaca!important; border-bottom-color: #9a9a9a!important; border-right-color: #b7b7b7!important; border-left-width: 0px!important; } mymodule.css file is added in header section. i can check it by viewing resource I added this code in mymodule.css file as you mentioned. ul.step li { float: left!important; width: 19%!important; text-align: left!important; border: 1px solid!important; border-top-color: #cacaca!important; border-bottom-color: #9a9a9a!important; border-right-color: #b7b7b7!important; border-left-width: 0px!important; } But Not working... Please elaborate ....... Link to comment Share on other sites More sharing options...
ZinC Posted May 13, 2014 Share Posted May 13, 2014 Shouldn't there be spacing like this: width: 19% !important; ? Link to comment Share on other sites More sharing options...
arslantabassum Posted May 14, 2014 Author Share Posted May 14, 2014 Shouldn't there be spacing like this: width: 19% !important; ? Sorry , not working.... Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 noo, spacing is not the problem any chance to see it live somewhere? if so, please share url in cases like that it's necessary to inspect website and its styles Link to comment Share on other sites More sharing options...
arslantabassum Posted May 15, 2014 Author Share Posted May 15, 2014 noo, spacing is not the problem any chance to see it live somewhere? if so, please share url in cases like that it's necessary to inspect website and its styles working live..... i have change the original.css file.... with hardcording...... Please... share the complete procedure of overriding original.css property..... Again in detail... I Must try.............. thanks....... Link to comment Share on other sites More sharing options...
Recommended Posts