1月9日什么星座| 佳木斯二院全名叫什么| 任劳任怨是什么生肖| 胃炎什么症状| 预防感冒吃什么药| 向日葵什么时候采摘| 冠心病做什么检查| 2009年属什么生肖| 乌龟喜欢吃什么| 体检什么时候去最好| 三观是什么| 闭关修炼是什么意思| 手心干燥是什么原因| 无常是什么意思| 为什么头朝西睡觉不好| 腰椎ct能查出什么| 十全十美是什么生肖| 山西属于什么地区| 全身检查要挂什么科| izzue是什么牌子| ibm是什么| 骨关节响是什么原因| 潜意识是什么意思| 梦见挖土豆是什么意思| 想请假找什么理由好| 口臭吃什么药效果最好| 什么是尿酸高| 俄罗斯是什么洲| 乙肝有什么明显的症状| 狸猫是什么猫| 卤牛肉放什么调料| 什么的南瓜| 男人都是大猪蹄子是什么意思| 真菌是什么原因引起的| 相逢是什么意思| 月抛什么意思| 十一月一日是什么星座| 查幽门螺杆菌挂什么科| 宝姿是什么档次的牌子| 男孩什么时辰出生最好| 经常头痛吃什么药效果好| 玉帝和王母是什么关系| 美国是什么洲| 避孕套和安全套有什么区别| 为什么不娶养猫的女人| 脑ct挂什么科| 什么叫肠易激综合征| 处女座跟什么星座最配| 什么情况下会感染hpv病毒| 长个子需要补充什么| 1994年是什么年| 狗篮子什么意思| 内裤发黄是什么原因| 左眼皮跳什么预兆| 画饼充饥是什么意思| 炖肉什么时候放盐| 扑尔敏的学名叫什么| 盆腔炎吃什么药好得快| 葡萄是什么意思| 什么是反物质| 周杰伦为什么叫jay| 什么叫做脂肪肝| 早上起来口苦是什么原因| 菠萝蜜什么季节成熟| 构造是什么意思| 看是什么意思| 排骨炖什么补血补气| 鱼条念什么| 脑供血不足用什么药好| 倒走对身体有什么好处| 喝椰子汁有什么好处| 黑色素痣看什么科| 地图舌是什么原因引起的| 大腿后侧疼痛什么原因| 白细胞阳性什么意思| 什么叫处方药| 洗完牙需要注意什么| 心电图诊断窦性心律什么意思| 痛经吃什么药| bj什么意思| 唇炎是什么原因造成的| 一吃就吐是什么病症| 老舍被誉为什么称号| 金刚是什么意思| 蛋白粉吃了有什么好处| 山竹树长什么样| 女人什么年龄性最旺| 常打嗝是什么原因| 手臂酸痛是什么原因| 淡定从容是什么意思| 小孩反复高烧是什么原因| com什么意思| 两肺间质性改变是什么意思| 什么叫扁平疣长什么样| 耳朵里面疼什么原因| 1958属什么生肖| 水泻拉肚子是什么原因| 舌裂纹是什么原因| 部级干部是什么级别| 下午5点多是什么时辰| 尊是什么意思| skirt什么意思| 金字旁的字与什么有关| 一个月小猫吃什么| 大姨妈期间可以吃什么水果| ff是什么牌子| 33朵玫瑰花代表什么意思| 端字五行属什么| 雯字五行属什么| 中国移动增值业务费是什么| 芙蓉是什么| 冲锋陷阵是什么生肖| 喝酒对身体有什么影响| 异麦芽酮糖醇是什么| 吃什么可以解酒最快简单| 口水歌是什么意思| 2月13号是什么星座| 骨质硬化是什么意思| 非洲人说什么语言| 农历五月是什么星座| 国家一级演员是什么级别| 中指戴戒指代表什么| 猪咳嗽用什么药好得快| 炎细胞浸润是什么意思| 三七粉做面膜有什么功效| 蓝莓是什么季节的水果| pac是什么| 软开是什么| 11月25日是什么星座| 血糖高有什么危害| 拮抗剂是什么| 呼吸科属于什么科室| 5月3号是什么星座| 喝酒头疼吃什么药| 喝什么可以降血压| 杨梅泡酒有什么功效和作用| 感冒是什么原因引起的| 金句是什么意思| 为什么指甲有竖纹| 宛字五行属什么| 肝血虚吃什么食物调理| 办电话卡需要什么| 魄力是什么意思| 什么叫统招生| 碱性体质的人有什么特征| 眼睛总有眼屎是什么原因| kksk是什么意思| 看睾丸去医院挂什么科| 什么是k金| 胸有成竹是什么意思| 1月6号什么星座| 西瓜坏了是什么样| 妹妹你坐船头是什么歌| se是什么意思| 三月六号是什么星座| 神经病吃什么药效果好| 2026年属什么生肖| 怀孕20天有什么症状| 吃什么会流产| 肠化生是什么症状| 两性关系是什么意思| 无名指长代表什么| 副检察长什么级别| 男性尿频是什么问题| 敦伦是什么意思| 谷草转氨酶偏高是什么原因| 吃桑葚有什么好处| 牙周炎是什么| 后脑勺痛什么原因引起的| 男性孕前检查挂什么科| 楞头青是什么意思| 利空是什么意思| 什么是宫腔镜手术| 老虎头是什么牌子衣服| 8宫代表什么| 胆囊结石会引起身体什么症状| 蝙蝠长什么样子图片| 尿很臭是什么原因| 尖酸刻薄什么意思| 责任是什么生肖| 荆州有什么大学| 老树盘根是什么意思| 抗心磷脂抗体是什么| 子女缘薄是什么意思| bv是什么品牌| 吃什么可以降火祛痘| 龟兔赛跑的故事告诉我们什么道理| 小儿感冒吃什么药| 脑梗吃什么水果| 菜鸟是什么意思| 2.1是什么星座| 吃什么睡眠好的最快最有效| 蔷薇色是什么颜色| 麻豆是什么意思| 甘油三酯指的是什么| 层出不穷是什么意思| 28什么意思| 拉黑和删除有什么区别| 旦上面加一横是什么字| 皮肤一块白一块白的是什么原因| 脚臭是什么原因| 表述是什么意思| 牙龈爱出血是什么原因| who医学上是什么意思| 摩羯座是什么象| 低血压吃什么好的最快女性| 走胎是什么意思| 火象是什么星座| 植物奶油是什么做的| 鼻塞黄鼻涕吃什么药| 体检报告都检查什么| 薄如蝉翼是什么意思| 益母草长什么样| 摩什么擦什么| cu是什么意思| b和o型血生的孩子是什么血型| 两个a是什么牌子| 阴囊潮湿是什么原因| 孢子是什么| 什么水果对胃好更养胃| 蒙昧是什么意思| 这是为什么| 0是什么意思网络语言| 头孢不能和什么食物一起吃| 取次是什么意思| 7月15日是什么日子| 九月十九是什么星座| 14岁属什么| 头痛是什么病的前兆| m2是什么单位| 痛风可以吃什么水果| 毫无保留什么意思| 血脂高吃什么油好| 什么是翘舌音| 桑叶泡水喝有什么好处| 全身发热是什么原因| 烟青色是什么颜色| 什么减肥药好使| 什么是双向情感障碍| 什么是新时代| 戌时是什么时候| 怀孕什么时候打胎最合适| 胎儿肾盂分离是什么意思| 七月二十八什么星座| 黄色裤子配什么上衣好看| 甲胎蛋白偏高说明什么| 眼睛痒用什么眼药水好| 鸟加衣念什么| 鳗鱼吃什么食物| 刺史相当于现在什么官| 单脐动脉对胎儿有什么影响| 自言自语说话是什么病| 一什么无余| 为什么说白痰要人命| 血糖高应该吃什么水果| 皮肤敏感是什么意思| 膝关节退行性改变是什么意思| 什么鱼吃泥鳅| 股骨长径是指胎儿什么| 胃炎吃什么最好| 大便偏黑是什么原因| 为什么有眼袋是什么原因引起的| 左什么右什么| 大学体检都检查什么| 百度
Table of Contents
Adjusting layout
Dividing columns
Making it responsive
Planning for single-page printing
Browser support
Home Web Front-end CSS Tutorial New Year, New Job? Let's Make a Grid-Powered Resume!

加快协同创新京津1400余家高科技企业落户河北

Apr 13, 2025 am 11:26 AM

百度   监察委员会职责重大,其自身自然也要接受外界监督。

New Year, New Job? Let's Make a Grid-Powered Resume!

Many popular resume designs are making the most of the available page space by laying sections out in a grid shape. Let’s use CSS Grid to create a layout that looks great when printed and at different screen sizes. That way, we can use the resume online and offline, which might come in handy during the new year!

First, we will create a resume container, and our resume sections.

<article>
  <section></section>
  <section></section>
  <section></section>
  <section></section>
  <section></section>
  <section></section>
  <section></section>
</article>

To start using Grid, we add display: grid to our outer resume element. Next, we describe how things should be placed on the grid. In this case, we will specify two columns and four rows.

We are using the CSS Grid’s fr unit to specify how many fractions on the available space to give. We will give the rows equal space (1fr each), and make the first column two times wider than the second (2fr).

.resume {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
}

Next we will describe how these elements should be placed on the grid by using the grid-template-area property. First we need to define a named grid-area for each of our sections. You can use any name but here we will use the same name as our sections:

.name {
  grid-area : name;
}

.photo {
  grid-area : photo;
}

/* define a grid-area for every section */

Now comes the fun part, and one that makes changing the design a breeze. Place the grid areas in the grid-template-areas property how you want them to be laid out. For example, here we will add the name section at the top left of the the grid-template-area to place our name at the top left of the resume. Our work section has a lot of content so we add it twice, meaning that it will stretch over two of the grid cells.

.resume {
  grid-template-areas:
    "name photo"
    "work about"
    "work education"
    "community skills";
}

Here’s what we have so far:

The CSS Grid specification provides many useful properties for sizing and laying things out on the grid and well as some shorthand properties. We are keeping things simple in this example by showing one possible method. Be sure to check out some of the great resources out there to learn how best to incorporate CSS Grid in your project.

Adjusting layout

grid-template-areas make it very easy to change your layout. For example, if you think an employer will be more interested in your skills section than your education you can switch the names in grid-template-areas and they will swap places in your layout, with no other changes required.

.resume {
  grid-template-areas:
    "name photo"
    "work about"
    "work skills"  /* skills now moved above education */
    "community education";
}

We can achieve a popular resume design where the thin column is on the left with minimal CSS changes. That’s one of the nice things about grid: We can rearrange the named grid areas to shift things around while leaving the source order exactly where it is!

.resume {
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "photo education"
    "name work"
    "about work"
    "skills community";
}

Dividing columns

Perhaps you want to add personal references to the mix. We can add a third column to the grid template and slip those into the bottom row. Note that we also need to change the column units to equal fractions then update the template areas so that certain elements span two columns in order to keep our layout in place.

.resume {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "name name photo"
    "work work about"
    "work work education"
    "community references skills";
}

The gap between sections can be controlled with the grid-gap property.

Making it responsive

For small screens, such as a mobile device, we can display the resume sections in a single full-width column.

grid-template-columns: 1fr;
grid-template-areas:
  "photo"
  "name"
  "about"
  "work"
  "education"
  "skills"
  "community"
  "references"
}

Then we can use a media query to change the layout for wider screens.

@media (min-width: 1200px) {
  .resume {
    grid-template-areas:
      "name photo"
      "work about"
      "work education"
      "community skills";
  }
}

Additional breakpoints can be added in between. For example, on medium screens like a tablet, we might want everything in a single column, but the personal and image sections to sit side-by-side at the top.

@media (min-width: 900px) {
  .resume {
      grid-template-columns: 2fr 1fr;
      grid-template-areas:
        "name photo"
        "about about"
        "work work"
        "education education"
        "skills skills"
        "community community"
        "references references"
  }
}

Planning for single-page printing

If you want your resume to print nicely to a single piece of physical paper, there are a few things to keep in mind. The hardest challenge is often cutting down the number of words so that it fits on one page.

Avoid reducing the font size to squeeze more information, as it may become hard to read. One trick is to add a temporary size constraint to your resume element just while while you are developing.

.resume {
  /* for development only */
  width : 210mm;
  height: 297mm;
  border: 1px solid black;
}

By making this A4 paper-sized border it will be clearer to see if the sizes are too small, or the content spills out of the border, indicating it would print onto a second page.

You can provide printing CSS to hide things, like the date and page numbers, that the browser may insert.

@media print {
  /* remove any screen only styles, for example link underline */
}

@page {
  padding: 0;
  margin: 0cm;
  size: A4 portrait;
}

One thing to note is that different browsers may render your resume with different fonts that can vary slightly in size. If you want a very precise printed resume, another option is to save it as a PDF and provide a download link on your site.

Browser support

CSS Grid has good support in modern browsers.

Internet Explorer (IE) supports an older version of the CSS Grid specification using prefixes. For example grid-template-columns is written as -ms-grid-columns. Running the code through an Autoprefixer can help with adding these prefixes, but manual changes and thorough testing will be required because in the old specification some properties behave differently and some do not exist. It’s worth checking out Daniel Tonon’s article on how Autoprefixer can be configured to make things work as well as possible.

An alternative approach to autoprefixer is to provide a fallback, for example by using a float layout. Browsers that don’t recognize CSS Grid properties will display using this fallback. Regardless of whether you need to support IE, a fallback is sensible for ensuring (potentially unknown) browsers that don’t support CSS Grid still display your content.

Even if you’re not ready to host an online resume, it is still fun to play around with CSS Grid, explore different layouts, generate a great looking PDF, and learn an awesome part of CSS at the same time.

Happy job hunting!

The above is the detailed content of New Year, New Job? Let's Make a Grid-Powered Resume!. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1488
72
CSS tutorial for creating loading spinners and animations CSS tutorial for creating loading spinners and animations Jul 07, 2025 am 12:07 AM

There are three ways to create a CSS loading rotator: 1. Use the basic rotator of borders to achieve simple animation through HTML and CSS; 2. Use a custom rotator of multiple points to achieve the jump effect through different delay times; 3. Add a rotator in the button and switch classes through JavaScript to display the loading status. Each approach emphasizes the importance of design details such as color, size, accessibility and performance optimization to enhance the user experience.

Addressing CSS Browser Compatibility issues and prefixes Addressing CSS Browser Compatibility issues and prefixes Jul 07, 2025 am 01:44 AM

To deal with CSS browser compatibility and prefix issues, you need to understand the differences in browser support and use vendor prefixes reasonably. 1. Understand common problems such as Flexbox and Grid support, position:sticky invalid, and animation performance is different; 2. Check CanIuse confirmation feature support status; 3. Correctly use -webkit-, -moz-, -ms-, -o- and other manufacturer prefixes; 4. It is recommended to use Autoprefixer to automatically add prefixes; 5. Install PostCSS and configure browserslist to specify the target browser; 6. Automatically handle compatibility during construction; 7. Modernizr detection features can be used for old projects; 8. No need to pursue consistency of all browsers,

What is the difference between display: inline, display: block, and display: inline-block? What is the difference between display: inline, display: block, and display: inline-block? Jul 11, 2025 am 03:25 AM

Themaindifferencesbetweendisplay:inline,block,andinline-blockinHTML/CSSarelayoutbehavior,spaceusage,andstylingcontrol.1.Inlineelementsflowwithtext,don’tstartonnewlines,ignorewidth/height,andonlyapplyhorizontalpadding/margins—idealforinlinetextstyling

Styling visited links differently with CSS Styling visited links differently with CSS Jul 11, 2025 am 03:26 AM

Setting the style of links you have visited can improve the user experience, especially in content-intensive websites to help users navigate better. 1. Use CSS's: visited pseudo-class to define the style of the visited link, such as color changes; 2. Note that the browser only allows modification of some attributes due to privacy restrictions; 3. The color selection should be coordinated with the overall style to avoid abruptness; 4. The mobile terminal may not display this effect, and it is recommended to combine it with other visual prompts such as icon auxiliary logos.

Creating custom shapes with css clip-path Creating custom shapes with css clip-path Jul 09, 2025 am 01:29 AM

Use the clip-path attribute of CSS to crop elements into custom shapes, such as triangles, circular notches, polygons, etc., without relying on pictures or SVGs. Its advantages include: 1. Supports a variety of basic shapes such as circle, ellipse, polygon, etc.; 2. Responsive adjustment and adaptable to mobile terminals; 3. Easy to animation, and can be combined with hover or JavaScript to achieve dynamic effects; 4. It does not affect the layout flow, and only crops the display area. Common usages are such as circular clip-path:circle (50pxatcenter) and triangle clip-path:polygon (50%0%, 100 0%, 0 0%). Notice

What is the CSS Painting API? What is the CSS Painting API? Jul 04, 2025 am 02:16 AM

TheCSSPaintingAPIenablesdynamicimagegenerationinCSSusingJavaScript.1.DeveloperscreateaPaintWorkletclasswithapaint()method.2.TheyregisteritviaregisterPaint().3.ThecustompaintfunctionisthenusedinCSSpropertieslikebackground-image.Thisallowsfordynamicvis

How to create responsive images using CSS? How to create responsive images using CSS? Jul 15, 2025 am 01:10 AM

To create responsive images using CSS, it can be mainly achieved through the following methods: 1. Use max-width:100% and height:auto to allow the image to adapt to the container width while maintaining the proportion; 2. Use HTML's srcset and sizes attributes to intelligently load the image sources adapted to different screens; 3. Use object-fit and object-position to control image cropping and focus display. Together, these methods ensure that the images are presented clearly and beautifully on different devices.

What are common CSS browser inconsistencies? What are common CSS browser inconsistencies? Jul 26, 2025 am 07:04 AM

Different browsers have differences in CSS parsing, resulting in inconsistent display effects, mainly including the default style difference, box model calculation method, Flexbox and Grid layout support level, and inconsistent behavior of certain CSS attributes. 1. The default style processing is inconsistent. The solution is to use CSSReset or Normalize.css to unify the initial style; 2. The box model calculation method of the old version of IE is different. It is recommended to use box-sizing:border-box in a unified manner; 3. Flexbox and Grid perform differently in edge cases or in old versions. More tests and use Autoprefixer; 4. Some CSS attribute behaviors are inconsistent. CanIuse must be consulted and downgraded.

See all articles
卡布奇诺是什么意思 白加黑是什么药 如何知道自己适合什么发型 掉头发是什么原因女性 大腿麻木是什么原因
手机是什么意思 恶寒是什么意思 缺爱是什么意思 女人缺少雌激素吃什么 东北小咬是什么虫子
冰心原名叫什么 腾空是什么意思 子时右眼跳是什么预兆 鸡尾酒是什么意思 主导是什么意思
少年班是什么意思 办理护照需要什么手续 窦性心动过缓伴不齐是什么意思 实则是什么意思 b2c模式是什么意思
什么是sohohcv8jop4ns6r.cn 7月17号是什么星座huizhijixie.com 阳痿什么意思hcv8jop5ns6r.cn york是什么牌子hcv8jop1ns4r.cn 腿上起水泡是什么原因hcv9jop8ns2r.cn
什么不足hcv8jop8ns9r.cn 韭菜不能和什么一起吃creativexi.com 为什么眉毛会白wmyky.com 孕妇梦见老公出轨是什么意思hcv8jop4ns8r.cn 炖羊肉放什么shenchushe.com
办幼儿园需要什么证hcv9jop5ns5r.cn 检查生育能力挂什么科beikeqingting.com 梦见别人家盖房子是什么意思hcv9jop5ns1r.cn 血液肿瘤是什么病hcv7jop6ns3r.cn nyc是什么牌子fenrenren.com
杨枝甘露是什么东西hcv9jop6ns7r.cn 3月17日是什么星座的hcv9jop0ns7r.cn 62年属什么生肖hcv9jop7ns1r.cn lee是什么牌子中文名xinmaowt.com 捡尸是什么意思hcv8jop7ns3r.cn
百度