-2

I am currently working on a website and for some reason i'm baffled to the size of the logo/banner because the only option for the theme is to import a logo and use that. i uploaded the banner and i want it to go straight across and fit perfect? can anyone help me

The website is here! [CLICK ME]

Here's the style.css CLICK ME TO GO THE PASTEBIN

 The code is more than the character limit

Please can anyone help me?

Thanks.

Kalamarico
  • 5,466
  • 22
  • 53
  • 70
bcz
  • 1
  • 1

3 Answers3

0

Was Messing Around with the CSS you provided. The container the header image is in is called navbar-brand. In the CSS Ctrl+F and find it

add this snippet and it should do what you want.

.navbar-brand{
   width: 435% !important;
}

Now if change the size of your header image you're going to have to change the width percentage to match the new size with the header.

J.Diaz
  • 1
  • 2
0

There are two ways to tackle this issue, one make your navbar column to col-sm-12 this way the width of the container will be 100% and it will take full width automatically. Because currently it's getting col-sm-4 which means 33.33%.

Adding width more than 100% never a good practice, you can add this code in your style sheet for second option.

.navbar-brand {
    width: 1140px !important;}
Waqas Ahmed
  • 300
  • 2
  • 4
0

That's because your logo was stuck between the h1 tag
After you remove it from the h1 the default bootstrap classes comes with the default padding and margin.

Add this

.navbar-brand
{
padding:0;
margin:0;
}

and remove the bootstrap class col-sm-3 because .col-sm-3 only occupies the 25% of the space

since you need it to be fill the screen use col-sm-12 it will occupy the 100% of the page.

To know more about bootstrap grids see here: https://www.w3schools.com/bootstrap/bootstrap_grid_basic.asp

And also bootstrap grids comes with default padding. Remove the padding to fit the screen

Add this

.col-sm-12
{
padding:0;
}

.row
{
margin:0;
}

You'll have your image full sized now. Hope I helped.

Viira
  • 3,805
  • 3
  • 16
  • 39