Jump to content

Top border on Wordpress site

Recommended Posts

Hi Everyone,

I'm new.  I'm working on a personal corporate website (crowconsulting.io) and I'm having trouble putting a border on the top of my site.  Basically, I just want the top of my site to have a #3c4043 colored bar above the header just to provide some contrast.  I'm decent with the WordPress CSS editor, and I've targeted everything I can find that I think would allow me to apply a border-top to the top of the page, but nothing has worked. I've tried !important for every attempt I've made, too.


Does anyone know a way I can do this on my site without editing html (something I'm afraid todo)? I would like to use only the CSS editor if possible.


Many thanks in advance!



Link to post
Share on other sites

A body selector should work fine. Something like this:

body {
    border-top: 4px solid #3c4043;


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.

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.

  • Create New...