Arranging shapes for optimal placement on a web page

I recently created a vibrant red SVG shape that resembles this:

https://i.sstatic.net/E3P3O.jpg

My goal is to incorporate these shapes into a design that looks like the following:

https://i.sstatic.net/8Yf8L.jpg

I attempted to embed the SVG file in an img tag and position it using absolute/relative positioning, resulting in the following outcome:

https://i.sstatic.net/hZB1r.jpg

Initially, it appeared perfect. However, upon resizing my browser, I encountered this issue:

https://i.sstatic.net/FfJes.jpg

Being new to HTML/CSS, it's clear that I still have much to learn and may not be approaching this task correctly...

Below is the snippet of my HTML code:

<section id="whatwedo">
        <div class="hat"><img src="img/hat.svg" alt="Startup" style="img-responsive;"></div>

        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <h1 class="text-center">what we do</h1>
                    <p class="text-center">We offer a wide range of software development and design options from a simple web development to more complicated information systems. We ensure our customers get the right thing, done the right way.</p>
                </div>
                <!--end col-md-8 col-md-offset-2-->
            </div>
            <!--end row-->


            <div class="row fields">
                <div class="col-sm-4 development-field">
                    <img src="img/development.svg" alt="Development" style="width:90px;height:90px;" class="img-responsive center-block">
                    <h2 class="text-center">develop</h2>
                    <p class="small text-center">We take pride in our experience in developing Java and PHP applications with different technologies and frameworks.</p>
                    <button type="button" class="btn btn-link center-block blue" role="link" type="submit" name="op" value="Link 2">more</button>
                </div>
                <div class="col-sm-4 design-field">
                    <img src="img/design.png" alt="Design" style="width:90px;height:90px;" class="img-responsive center-block">
                    <h2 class="text-center">design</h2>
                    <p class="small text-center">Beauty. Simplicity. Delight. We create beautiful user experiences to solve our customers’ business problems.</p>
                    <button type="button" class="btn btn-link center-block blue" role="link" type="submit" name="op" value="Link 2">more</button>
                </div>
                <div class="col-sm-4 startup-field">
                    <img src="img/startup.svg" alt="Startup" style="width:90px;height:90px;" class="img-responsive center-block">
                    <h2 class="text-center">startup</h2>
                    <p class="small text-center">We love being a part of new innovation and help your startup succeed by developing the technology you need to push forward.</p>
                    <button type="button" class="btn btn-link center-block blue" role="link" type="submit" name="op" value="Link 2">more</button>
                </div>
            </div>
            <!--end row fields-->
        </div>
        <!--end container-->

    </section>
    <!--end whatwedo-->

Here's the CSS styling I've applied:

/*what we do*/

.fields {
    margin-top: 64px;
}

.development-field img,
.design-field img,
.startup-field img {
    margin-bottom: 32px;
}

#aboutprocess {
    margin-top: 64px;
    padding: 64px 0;
    background: url(../img/tech_bg.jpg) repeat center center fixed;
    width: 100%;
    height: 344px;
    background-size: contain;
}

#aboutprocess p {
    color: #ffffff;
    padding-top: 60px;
}

.hat {
    width: 100%;
    position: absolute;
    left: 0;
    top: -110px;
}

#whatwedo {
    position: relative;
}

If anyone can assist me with resolving this issue, I would greatly appreciate it. I've spent hours on this project already and could really use some guidance. You can also check out the demo page for reference. Thank you.

Answer â„–1

After considering your input, I have created a sample with some adjustments to the HTML and CSS structure.

If you need further assistance, feel free to reach out.

#home {
  width: 100%;
  height: 100vh;
position: relative;
  background: linear-gradient( rgba(14, 124, 132, 0.8), rgba(14, 124, 132, 0.8)), url("http://dolm.ragne.me/img/landing_bg.jpg") no-repeat 0 0 fixed;
  background-size: cover;
}
.hat {
width: 100%;
  height: 130px;
background: url("http://dolm.ragne.me/img/hat.svg") no-repeat center bottom;
  background-size: contain;
  position: absolute;
  bottom: 0;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<section id="home">
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <h1>Heading sample</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <button type="button" name="button" class="btn btn-primary">Click me</button>
      </div>
    </div>
  </div>
<div class="hat"></div>
</section>

<section id="about">
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <h1>Heading sample</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae illum ipsum voluptatibus eos magni est rem, quae recusandae. Sequi, quae voluptatum alias adipisci, quas repudiandae eveniet et quis placeat.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing...<!-- Text shortened for brevity -->

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can the communication be improved between a JSP page and a Java object?

In the midst of a project involving a java back-end and web page UI, my goal is to integrate the two seamlessly. The java system functions on the server, storing rules created within the web page's interface. To achieve this, I am seeking a way for te ...

When utilizing PHP Form Validation alongside Javascript, the validation process does not halt even if a

I have been grappling with creating a basic HTML form validation using Javascript After experimenting with various examples, I am still facing the issue of my index page loading upon clicking the button on the form. Despite including "return false" in wha ...

What exactly does the "data-effect" attribute refer to?

After downloading a code, I came across the following line: <button data-effect="st-effect-4">Slide along</button> I noticed that "st-effect-4" is a class name in the code, but I am curious to know what exactly this data-effect attribute is u ...

Struggling to Locate the Chat Element on Google Hangouts Using Selenium Python

Lately, I have been struggling with the selenium module in Python. I am attempting to create a script that can automatically send messages to my friends as requested by one of them. Although I can successfully log into Google Hangouts using Selenium, I am ...

Can someone explain this lengthy string of CSS coding?

While working on a framework file, I stumbled upon an extensive CSS string that I have never encountered before. html body .ow_button:hover .ow_ic_attach{background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width% ...

Personalize the appearance of dynamically generated DIV elements

This script generates a random number of squares (ranging from 20 to 40) and adds text to each square. The script then calculates the width of each square so that they all fit in a single row. Here is the code snippet: var quantity = Math.floor(Math.ran ...

Loss of Image Quality when Zooming out Canvas

I have developed a code to implement zoom-in and zoom-out functionality for a canvas image. However, I am facing an issue where the quality of the image deteriorates when zoomed more than once. I am using the canvas2image plugin to convert the canvas into ...

Border at the Top and Text Alignment Problem

I am working on a basic navigation bar that includes a hover effect. .navip { float: left; text-decoration: none; font-weight: lighter; } .navip > a { display: block; color: black; text-decoration: none; font-size: 20px; ...

What is the best way to manage the alignment of elements within their parent containers in my situation?

Attempting to replicate the design of a website by starting with the navigation bar. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>test</title> <link rel="stylesheet" href="https: ...

Tips for building nested columns within React Bootstrap Table

I have been working with react bootstrap table, you can find more information here You can check out the code in action by clicking here My goal was to create a table that resembles the one shown below: https://i.sstatic.net/jsZKe.png Here is an example ...

Utilizing CSS3 transformations for a symbol

I'm currently attempting to implement a CSS transformation on an icon (glyph) within a :before pseudo element. My primary objective is to execute a simple "flip" animation on the icon using transform: scale(-1, 1), but I am encountering difficulties ...

The background-size:cover property fails to function properly on iPhone models 4 and 5

I have taken on the task of educating my younger sister about programming, and we collaborated on creating this project together. Nicki Minaj Website However, we encountered an issue where the background image does not fully cover the screen when using b ...

Circular Menu attached to Floating Action Button

Looking to design a Floating Action button that displays a circular menuhttps://i.sstatic.net/D3JOU.jpg Do you think it's achievable using solely css? ...

Adding a timestamp to the src URL in HTML: A step-by-step guide

Looking for a way to implement cache busting in my index.html file. Take a look at the code snippet below: <body> <app-root></app-root> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="&l ...

Tips for customizing the appearance of a timer using javascript and css

Check out this fiddle linked here: jsfiddle First, have a look at the initial HTML code below. For the JavaScript part, refer to the fiddle: <div id="test_time_left">Time Left :<b><span id="time_value" style="padding-left:5px;"></spa ...

Implement a collapsible navbar using bootstrap

To create a responsive navbar that collapses into a burger menu when clicked, you can use the following HTML structure: <body> <header id="nav-wrapper"> <img id="logo" src="images/event-logo.png" /> <nav class="n ...

What is the best way to smoothly transition in an image that is dynamically set using Angular?

I am using Angular to set a background image for my page, but the current loading behavior is not visually appealing as the image loads from top to bottom. I would like to implement a fade-in effect or load the image from a blurry view to enhance the user ...

Why isn't the program recording user input in the console when the form is submitted?

Can someone please advise me on how to get the program to print the user's input values to the console when they click the "Sign up now" button? ...

Find common connections on Facebook using an app PRIOR to downloading it

Is there a way to programmatically find mutual friends between myself and an application or page? For instance, in the scenario shown below: In the image above, it's evident that prior to installing the Causes App (1) I can observe that myself and t ...

What is the best way to have a text field automatically insert a hyphen after specific numbers?

Is there a way to make a text field insert hyphens automatically after certain numbers? For example, when typing a date like 20120212, could we have the input automatically formatted with hyphens after the first 4 digits and the second two, so it displays ...