I need help with website design and CSS solutions. Currently, I have a WordPress website with a onepager theme. At the top of the page, there is an image that almost fills the screen along with a title. My concern is how this image behaves with different browser and window sizes.
On my current screen size, everything looks good. However, if I were to view it on a wider screen, the image expands in width, causing me to only see a small portion of it vertically. This makes sense due to the proportions being maintained based on width. Additionally, viewing it on mobile presents another issue.
Here is a sample link to better illustrate: jthemes.org/wp/uniset/demo9
- Try opening it on a wide screen and observe the result...
- Experiment with other sizes...
- View it on a mobile device...
What is the best way to address these issues? What approach is commonly used for such situations?
Snippets: CSS:
.vc_custom_1525172849260 {
margin-bottom: 0px !important;
padding-top: 240px !important;
padding-bottom: 180px !important;
background-image: url(http://jthemes.org/wp/uniset/demo9/wp-content/uploads/sites/9/2018/05/hero-8.jpg?id=230) !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover !important;
Html
<div data-vc-full-width="true" data-vc-full-width-init="true" class="vc_row wpb_row vc_row-fluid bg-scroll vc_custom_1525172849260 vc_row-has-fill vc_row-o-content-middle vc_row-flex" style="position: relative; left: 0px; box-sizing: border-box; width: 1165px; padding-left: 0px; padding-right: 0px;"><div class="wpb_column vc_column_container vc_col-sm-10"><div class="vc_column-inner vc_custom_1519925212553"><div class="wpb_wrapper">
<div class="title-subtitle-wrap text-left ">
<!-- Title -->
<h3 style="font-size:110px; color: #222222">FIND YOUR TIPPING POINT</h3>
<!-- Big Text -->
<p class="p-lg text-left" style="color: #333333">Nullam tempor sapien, eget gravida. Donec enim ipsum porta justo integer at odio velna vitae auctor integer congue magna impedit magna viverra</p>
</div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-2"><div class="vc_column-inner "><div class="wpb_wrapper"></div></div></div></div>