当前位置:首页 > 文章列表 > 文章 > 前端 > CSS 帮助

CSS 帮助

来源:dev.to 2024-11-09 13:33:47 0浏览 收藏

小伙伴们对文章编程感兴趣吗?是否正在学习相关知识点?如果是,那么本文《CSS 帮助》,就很适合你,本篇文章讲解的知识点主要包括。在之后的文章中也会多多分享相关知识点,希望对大家的知识积累有所帮助!

CSS 帮助

我正在尝试将文本附加到棕色框的左侧。我不能。我不知道代码有什么问题。请帮助我。

css


.hero {
    position: relative;
    bottom: 80px;
    display: flex;
    justify-content: left;
    align-items: start;
    color: rgb(255, 255, 255);
    background-color: rgb(80, 40, 40);
    width: 1600px;
    height: 1955px;
    margin: auto;
    border-radius: 60px;
}

.firstheroleft-column {
    font-family: system-ui, -apple-system, blinkmacsystemfont, 'segoe ui', roboto, oxygen, ubuntu, cantarell, 'open sans', 'helvetica neue', sans-serif;
    align-items: start;
    margin-top: 180px;
    margin-left: 40px;
    justify-content: left;
}

.middleheroleft-column {
    font-family: system-ui, -apple-system, blinkmacsystemfont, 'segoe ui', roboto, oxygen, ubuntu, cantarell, 'open sans', 'helvetica neue', sans-serif;
    align-items: start;
    margin-top: 580px;
    margin-left: 40px;
    justify-content: left;
}

.bottleimg {
    width: 80%;
    float: right;
}

.europeimg {
    width: 80%;
}

.trademarkimg {
    width: 80%;
}

html

<section class="hero">
        <div class="firstHeroLeft-column">
            <p>From the moment the water is collected, it undergoes a series of advanced filtration processes to remove any impurities while retaining the essential minerals that contribute to its refreshing taste. The water is then bottled in a state-of-the-art facility, where it is sealed to preserve its natural freshness and purity. We pride ourselves on delivering water that tastes as if it came straight from the source, ensuring every sip is as crisp and revitalizing as the first.</p>
        </div>
        <div class="firstHeroRight-column">
            <img src="./Images/Group 1.svg" alt="", class="bottleImg">
        </div>
        <div class="middleHeroLeft-column">
            <p>We operate in multiple markets, including local, regional, and international distribution channels, ensuring that our water reaches customers in diverse locations. Whether through supermarkets, convenience stores, or direct-to-consumer sales, our products are readily available to meet the needs of both individuals and businesses.</p>
        </div>
        <div class="middleHeroRight-column">
            <img src="./Images/pngtree-blue-europe-map-on-a-white-background-in-flat-png-image_4947413 1.svg" alt="" class="europeImg">
        </div>
        <div class="lastHeroLeft-column">
            <p>Our company is fully registered and operates in compliance with all relevant health and safety regulations. We hold various certifications, including ISO standards, which attest to our dedication to product quality and environmental responsibility. Our bottles are made from eco-friendly materials, and we are continually working to reduce our carbon footprint.</p>
        </div>
        <div class="lastHeroRight-column">
            <img src="./Images/r-registered-trademark-blue-stamp-png-704081694707697q78aqltgsh-removebg-preview 1.svg" alt="" class="trademarkImg">
        </div>
    </section>

以上就是《CSS 帮助》的详细内容,更多关于的资料请关注golang学习网公众号!

版本声明
本文转载于:dev.to 如有侵犯,请联系study_golang@163.com删除
小型博客开发:PHP还是JSP更合适?小型博客开发:PHP还是JSP更合适?
上一篇
小型博客开发:PHP还是JSP更合适?
React Antd UI 中 SubMenu 收缩时被挤出 Menu 的原因是什么?
下一篇
React Antd UI 中 SubMenu 收缩时被挤出 Menu 的原因是什么?
查看更多
最新文章
查看更多
课程推荐
  • 前端进阶之JavaScript设计模式
    前端进阶之JavaScript设计模式
    设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。
    542次学习
  • GO语言核心编程课程
    GO语言核心编程课程
    本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。
    508次学习
  • 简单聊聊mysql8与网络通信
    简单聊聊mysql8与网络通信
    如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让
    497次学习
  • JavaScript正则表达式基础与实战
    JavaScript正则表达式基础与实战
    在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。
    487次学习
  • 从零制作响应式网站—Grid布局
    从零制作响应式网站—Grid布局
    本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。
    484次学习
查看更多
AI推荐
  • 茅茅虫AIGC检测:精准识别AI生成内容,保障学术诚信
    茅茅虫AIGC检测
    茅茅虫AIGC检测,湖南茅茅虫科技有限公司倾力打造,运用NLP技术精准识别AI生成文本,提供论文、专著等学术文本的AIGC检测服务。支持多种格式,生成可视化报告,保障您的学术诚信和内容质量。
    51次使用
  • 赛林匹克平台:科技赛事聚合,赋能AI、算力、量子计算创新
    赛林匹克平台(Challympics)
    探索赛林匹克平台Challympics,一个聚焦人工智能、算力算法、量子计算等前沿技术的赛事聚合平台。连接产学研用,助力科技创新与产业升级。
    72次使用
  • SEO  笔格AIPPT:AI智能PPT制作,免费生成,高效演示
    笔格AIPPT
    SEO 笔格AIPPT是135编辑器推出的AI智能PPT制作平台,依托DeepSeek大模型,实现智能大纲生成、一键PPT生成、AI文字优化、图像生成等功能。免费试用,提升PPT制作效率,适用于商务演示、教育培训等多种场景。
    82次使用
  • 稿定PPT:在线AI演示设计,高效PPT制作工具
    稿定PPT
    告别PPT制作难题!稿定PPT提供海量模板、AI智能生成、在线协作,助您轻松制作专业演示文稿。职场办公、教育学习、企业服务全覆盖,降本增效,释放创意!
    75次使用
  • Suno苏诺中文版:AI音乐创作平台,人人都是音乐家
    Suno苏诺中文版
    探索Suno苏诺中文版,一款颠覆传统音乐创作的AI平台。无需专业技能,轻松创作个性化音乐。智能词曲生成、风格迁移、海量音效,释放您的音乐灵感!
    79次使用
微信登录更方便
  • 密码登录
  • 注册账号
登录即同意 用户协议隐私政策
返回登录
  • 重置密码