Как выровнять текст внутри UL слева для устройств с шириной между 900px -1024pxCSS

Разбираемся в CSS
Ответить Пред. темаСлед. тема
Anonymous
 Как выровнять текст внутри UL слева для устройств с шириной между 900px -1024px

Сообщение Anonymous »

import React from 'react';
import faqBg from '../assets/faq-bg.png';
import briefcaseIcon from '../assets/briefcase.png';
import missionImage from '../assets/our-mission.png';
import whyChooseUsImage from '../assets/why-choose-us.png';
import tickMark from '../assets/tick-mark.png';
import './About.css'

const About = () => (

{/* Hero Banner */}


{/* About Info */}


About WebInvolve

Empowering Businesses with Next-Generation Digital Solutions

At WebInvolve, we are a passionate team of developers, designers, and digital strategists committed to transforming ideas into impactful digital experiences. Founded with the vision to empower businesses of all sizes, we specialize in delivering cutting-edge web development, mobile applications, e-commerce solutions, UI/UX design, and digital transformation services.
Our mission is simple: build digital products that drive growth, enhance user engagement, and generate measurable results.


Years of
Experience
Изображение

08+



{/* Mission */}

Изображение


Custom Development: React, Laravel, Flutter, Node.js solutions.


[*]

Изображение


E-commerce Experts: Shopify, WordPress, and custom platforms.


[*]

Изображение


Fast Delivery: Quick, scalable, quality-first builds.


[*]

Изображение


AI & ML: Smart solutions for automation and insights.


[*]

Изображение


Full Support: Design, launch, and beyond.


[/list]

Изображение



);

export default About;

< /code>
/* Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html, body {
overflow-x: hidden;
}

.about-wrapper {
width: 100%;
margin: 0;
padding: 0;
}

/* Hero Banner */
.hero-section {
width: 100%;
height: 320px;
background-size: cover;
background-position: center;
}

/* About Info Section */
.about-section {
display: flex;
align-items: center;
justify-content: space-between;
padding: 60px 5%;
background: #fff;
min-height: 500px;
margin-bottom: 36px;
gap: 2rem;
}

.about-text {
flex: 1;
max-width: 60%;
}

.about-text h2 {
font-size: 2rem;
margin-bottom: 22px;
}

.about-text h4 {
font-size: 18px;
margin-bottom: 22px;
font-family: auto;
color: #222426;
}

.about-text p {
margin-bottom: 15px;
line-height: 1.6;
color: #383C41;
font-size: 18px;
font-family: sans-serif;
}

.highlight {
background: linear-gradient(to right, #696EDF, #00DEFA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.experience-box {
width: 227px;
height: 227px;
position: relative;
flex-shrink: 0;
}

.experience-card {
width: 100%;
height: 100%;
background: #7E86F5;
border-radius: 12px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
}

.years {
font-size: 29px;
line-height: 1.2;
margin-bottom: 3rem;
margin-right: 43px;
}

.briefcase-img {
height: 64px;
width: 64px;
margin-right: 92px;
}

.experience-years {
position: absolute;
bottom: -100px;
right: -113px;
width: 227px;
height: 227px;
background: #00A9C9;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 76px;
font-weight: bold;
}

/* Mission Section */
.mission-section {
display: flex;
align-items: center;
padding: 60px 5%;
background: #F7F9FC;
gap: 3rem;
}

.mission-image {
width: 452px;
height: 412px;
object-fit: cover;
border-radius: 12px;
flex-shrink: 0;
}

.mission-text {
flex: 1;
}

.mission-text h3 {
font-size: 1.8rem;
margin-bottom: 16px;
}

.mission-text p {
line-height: 1.6;
color: #383C41;
font-size: 18px;
font-family: sans-serif;
}

/* Why Choose Us Section */
.choose-us-section {
display: flex;
align-items: center;
padding: 60px 5%;
background-color: #f5faff;
gap: 3rem;
}

.choose-us-text {
flex: 1;
}

.choose-us-text h1 {
font-size: 2rem;
margin-bottom: 20px;
}

.why {
color: black;
}

.gradient-text {
background: linear-gradient(to right, #696EDF, #00DEFA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.choose-us-text ul {
list-style: none;
padding: 0;
}

.choose-us-text li {
font-size: 18px;
margin-bottom: 15px;
display: flex;
align-items: flex-start;
color: #383C41;
}

.tick-icon {
display: inline-flex;
align-items: center;
margin-right: 10px;
flex-shrink: 0;
}

.tick-img {
width: 20px;
height: 20px;
}

.choose-us-text strong {
color: #1e3a8a;
}

.choose-us-image {
flex-shrink: 0;
}

.choose-us-img {
width: 452px;
height: 412px;
object-fit: cover;
border-radius: 12px;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
.hero-section {
height: 280px;
}

.about-section {
flex-direction: column;
text-align: center;
padding: 50px 5%;
}

.about-text {
max-width: 100%;
margin-bottom: 3rem;
}

.experience-box {
margin-bottom: 5rem;
}

.years {
font-size: 26px;
margin-bottom: 2.5rem;
margin-right: 35px;
}

.briefcase-img {
height: 56px;
width: 56px;
margin-right: 75px;
}

.experience-years {
width: 200px;
height: 200px;
font-size: 68px;
bottom: -90px;
right: -100px;
}

.mission-section {
flex-direction: column;
text-align: center;
padding: 50px 5%;
}

.mission-image {
width: 100%;
max-width: 450px;
height: auto;
margin-bottom: 2rem;
}

.choose-us-section {
flex-direction: column;
text-align: center;
padding: 50px 5%;
}

.choose-us-text {
margin-bottom: 2rem;
}

.choose-us-text li {
text-align: left;
justify-content: flex-start;
}

.choose-us-img {
width: 100%;
max-width: 450px;
height: auto;
}
}

/* Mobile Styles (480px - 768px) */
@media (max-width: 768px) {
.hero-section {
height: 240px;
}

.about-section {
padding: 40px 4%;
margin-bottom: 24px;
}

.about-text h2 {
font-size: 1.8rem;
}

.about-text h4 {
font-size: 16px;
}

.about-text p {
font-size: 16px;
}

.experience-box {
width: 200px;
height: 200px;
margin-bottom: 4rem;
}

.years {
font-size: 24px;
margin-bottom: 2rem;
margin-right: 28px;
}

.briefcase-img {
height: 48px;
width: 48px;
margin-right: 60px;
}

.experience-years {
width: 180px;
height: 180px;
font-size: 60px;
bottom: -80px;
right: -80px;
}

.mission-section {
padding: 40px 4%;
}

.mission-text h3 {
font-size: 1.6rem;
}

.mission-text p {
font-size: 16px;
}

.choose-us-section {
padding: 40px 4%;
}

.choose-us-text h1 {
font-size: 1.8rem;
}

.choose-us-text li {
font-size: 16px;
}

.tick-img {
width: 18px;
height: 18px;
}
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
.hero-section {
height: 180px;
}

.about-section {
padding: 30px 3%;
margin-bottom: 20px;
}

.about-text h2 {
font-size: 1.5rem;
margin-bottom: 16px;
}

.about-text h4 {
font-size: 14px;
margin-bottom: 16px;
}

.about-text p {
font-size: 14px;
margin-bottom: 12px;
}

.experience-box {
width: 180px;
height: 180px;
margin-bottom: 4rem;
}

.years {
font-size: 20px;
margin-bottom: 1.5rem;
margin-right: 20px;
}

.briefcase-img {
height: 40px;
width: 40px;
margin-right: 45px;
}

.experience-years {
width: 160px;
height: 160px;
font-size: 48px;
bottom: -70px;
right: -70px;
}

.mission-section {
padding: 30px 3%;
}

.mission-text h3 {
font-size: 1.4rem;
margin-bottom: 12px;
}

.mission-text p {
font-size: 14px;
}

.choose-us-section {
padding: 30px 3%;
}

.choose-us-text h1 {
font-size: 1.5rem;
margin-bottom: 16px;
}

.choose-us-text li {
font-size: 14px;
margin-bottom: 12px;
}

.tick-img {
width: 16px;
height: 16px;
}
}

/* Large Desktop Styles (min-width: 1400px) */
@media (min-width: 1400px) {
.about-section {
padding: 80px 8%;
}

.mission-section {
padding: 80px 8%;
}

.choose-us-section {
padding: 80px 8%;
}
}

/* Extra Large Desktop Styles (min-width: 1800px) */
@media (min-width: 1800px) {
.about-section {
padding: 100px 12%;
}

.mission-section {
padding: 100px 12%;
}

.choose-us-section {
padding: 100px 12%;
}
}

@media (min-width: 1024px) {
.experience-box {
margin-right: 92px;
}
}

.choose-us-text {
font-family: sans-serif;
}

/* Trying to keep the text aligned with image in desktop view and images centered till 1024px */

.mission-section {
align-items: flex-start;
}

@media (max-width: 1024px) {
.mission-section {
align-items: center;
}
}

.choose-us-section {
align-items: flex-start;
}

@media (max-width: 1024px) {
.choose-us-section {
align-items: center;
}
}

/* End */
< /code>
Can I make the text inside why choose us section, move to the left in the same horizontal position as the section above it, (At WebInvolve, our mission
Изображение
). I Tried using align-items: center it worked for the mission-section but not the why choose us section, from what I can make out it's due to the use of . For devices having width in between 900px and 1024px

Подробнее здесь: https://stackoverflow.com/questions/796 ... ween-900px
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «CSS»