Jump to content
Addy

How to create colored background in the header section?

Recommended Posts

Hey guys,

I am trying to customize my website theme (wordpress)

in the header section was an image by default, I deleted the image so the header section became empty blank,

I would like to fill in this blank section by a color using css code,

kindly help how to do this, thanks in advance!

regards

 

Share this post


Link to post
Share on other sites

Generally, the header section is wrapped inside a html tag named <header></header>. If it's the parent div use it in your css file as

header{

    background: your-color;

}

If the header tag is wrapped inside some div then find the top level div and use it's id or class name to add the same.

.divname or #idname{

    background: your-color;

}

Share this post


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...