Milada 0 Posted March 22, 2018 Report Share Posted March 22, 2018 Hi all, I found this code <div class="content-box-purple">text</div> to use for a box in a post. I copied this code: /* Content Box ------------------------------------------------------------ */ .content-box-purple { margin: 0 0 25px; overflow: hidden; padding: 20px; } .content-box-purple { background-color: #e2e2f9; border: 1px solid #bebde9; } to a style.css file. However, the box does not show in the post. I checked all plugins for compatibility and when deactivating them all, the box still does not show. Do you have an idea of what might be wrong? Thank you, Milada Quote Link to post Share on other sites
Ingolme 1,032 Posted March 22, 2018 Report Share Posted March 22, 2018 I see no obvious errors in that code. It could be that the stylesheet was not included properly. Quote Link to post Share on other sites
dsonesuk 925 Posted March 22, 2018 Report Share Posted March 22, 2018 Not quite sure what 'box in post' really refers to, or even what plugins relate to either? plugins for what? Quote Link to post Share on other sites
Milada 0 Posted March 23, 2018 Author Report Share Posted March 23, 2018 Hello Ingolme, thank you for understanding the issue. What do you mean by stylesheet was not included properly? Thank you. Kind regards, Milada Quote Link to post Share on other sites
Ingolme 1,032 Posted March 23, 2018 Report Share Posted March 23, 2018 That means that there is no link to the stylesheet or the path to the stylesheet is incorrect. What code did you write to use the stylesheet? Quote Link to post Share on other sites
Milada 0 Posted March 24, 2018 Author Report Share Posted March 24, 2018 I see, thank you Ingolme. So probably there is no link to the stylesheet. I used this code: " /* Content Box ------------------------------------------------------------ */ .content-box-purple { margin: 0 0 25px; overflow: hidden; padding: 20px; } .content-box-purple { background-color: #e2e2f9; border: 1px solid #bebde9; } " which I simply copied to a style.css file. There is something wrong with this, is there? Quote Link to post Share on other sites
dsonesuk 925 Posted March 24, 2018 Report Share Posted March 24, 2018 IF! your website caches css, it needs to be cleared and refreshed, you may have deactivated this cache plugin, but did it still use original cached version still? Quote Link to post Share on other sites
Milada 0 Posted June 15, 2018 Author Report Share Posted June 15, 2018 What do you mean? What is to be done? How can I solve the code issue? Quote Link to post Share on other sites
Ingolme 1,032 Posted June 15, 2018 Report Share Posted June 15, 2018 There has to be a <link> tag in your document and that tag needs to have the correct URL for your stylesheet. Quote Link to post Share on other sites
Olanrewaju 0 Posted May 1, 2020 Report Share Posted May 1, 2020 I want to learn coding Quote Link to post Share on other sites
Ingolme 1,032 Posted May 1, 2020 Report Share Posted May 1, 2020 W3Schools is the right place for that, but you should start your own topics instead of replying to an old and unrelated one. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.