-2

I'm amateur web designer with good knowledges of HTML CSS, but i'm beginner with resposive design and bootstrap.

So i need your help to solve my problems. My homepage design has, different sections width, for example Header is 1480px, Services section is 1240px, Call-To-Action Section is 1400px.

My second problem, homepage with resolution of 1480 px isn't showing correctly for example on 15" wide laptop monitors with resolution 1368px width and 19" Monitors with resolution of 1440px width, i need to scroll horizontally to see all content of the page.

In bootstrap media queries for large desctops are on 1200px, my resolution is bigger than this one, i was try to customize bootstrap for 1480 px (1450 + gutter size). But in that way, it jumps from 1480px to 992px.

I hope you'll help me.

Thank you for your time. Best wishes.

2 Answers2

0

Step 1: You need to put each of the sections - Header, Services, Call to action - into separate .container and give them additional CSS classes like this:

<div class="container header">
    ...
</div>
<div class="container services">
    ...
</div>
<div class="container call-to-action">
    ...
</div>

Step 2: In your custom CSS file define the desired widths for the maximum screen resolutions but I recommend to use max-width instead of fixed widths:

.@media (min-width: 1200px) {
    .header, .services, .call-to-action {
        width: auto;
    }
    .header {
        max-width: 1480px;
    }
    .services {
        max-width: 1240px;
    }
    .call-to-action {
        max-width: 1440px;
    }
}
Johann Kratzik
  • 764
  • 5
  • 11
0

The designer may have created high resolution designs so that you can have high resolution images. I think you should improvise a little and make following adjustments to make it fit inside 1200px wide screens and still maintain the aesthetics.

  1. White header can be fitter inside 1368px easily. Use CSS flexbox which adjusts content automatically and keep everything centered (use justify-content: center).
  2. Keep services section at 100% and then instead of using an img tag use CSS background image with position set to cover. It will auto fit the image in required dimensions. You just have to set a height here.
  3. About us section can be divided into two parts, left (approx 25%) and right (approx 75%). Same goes with Contact section in the end.
  4. Clients section can again be squeezed down. Or it can be converted to a horizontal slider.
  5. Services section again can be squeezed down.
  6. Testimonials section can also be reduces in width. Say 80%.
  7. Maps should be 100%. It will auto fit I think. Just set the height.
  8. Prefooter columns can be approx 16% 16% 34% 34% respectively.
  9. Footer is straight forward. Left column can be 75% and right can be 25%.

You can share your progress via a codepen :) I can suggest you edits there.

Community
  • 1
  • 1
Pankaj Phartiyal
  • 1,691
  • 1
  • 12
  • 23