Jump to content

How to create colored background in the header section?


Addy
 Share

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

 

Link to comment
Share on other sites

  • 2 weeks later...

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;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...