Jump to content

Code for a box in a post


Recommended Posts

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

Link to post
Share on other sites

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?

Link to post
Share on other sites

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?

Link to post
Share on other sites
  • 2 months later...
  • 1 year later...

W3Schools is the right place for that, but you should start your own topics instead of replying to an old and unrelated one.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...