I want to write ap graphics inside a circle. The circle is not full but like 30 %. I have wrote AP graphics inside a responsive quarter circle. The code I wrote is.

<html>
<head>
<title>
    AP Graphis
</title>
<style>
    .quarter{
    position: relative;
    width: 20vw;
    height: 20vw;
    border-top-right-radius:0;
    border-top-left-radius:0;
    border-bottom-right-radius:100%;
    border-bottom-left-radius:0;
    background: orange;
}
</style>
</head>
<body>
    <h1 class="quarter" style="color: white;"><br>&nbsp;<u>AP GRAPHICS</u></h1>
</body>
</html>

But I could not make it like the image below. Also I dont know how to mix the a and p from AP. I also dont know the font of text. I am new to css and dont know a stuff about it.

enter image description here

推荐答案

Web developers dont usually create all the graphics again in css. Instead, they just use the graphics created by graphic designers into the HTML pages.

Solution 1: Export the graphic (e.g., a logo) into a JPEG, or PNG file and then use it into your HTML page (using css or html img tag).

Solution 2: If you want high quality and efficient solution, export the graphic into a vector file (e.g., an SVG file) and then use it into your web page. This involves two following steps:

Step 2.1: Exporting graphics into a vector file: Open the graphic designing software (Adobe Illustrator, CorelDRAW), and then try to export as into svg (for Adobe Photoshop, follow this).

Step 2.2: Import vector file into the webpage: see MDN Docs

Html相关问答推荐

如何格式化HTML文本,使其环绕关键字

注册组件不显示当我导航到注册站点

如何将grid—template—column应用于元素中的子元素

Font Awesome 6插入符号未显示

如何在垂直堆叠的表格中调整人造列的大小?

子元素的单一背景

如何将文本环绕心形(而不仅仅是圆形)?

为什么 Select 元素在带有数据绑定的Blazor上行为怪异?

我在桌面版 html css 代码上给出了位置 margin-left margin-top 标签,如何将其删除到手机上以使其响应?

为 HTML5 文本字段设置最后六位正则表达式模式

在HTML使用link标签导入外部CSS时出现元素link不允许使用尾斜杠错误

Github上部署需要花费几小时时间:等待github pages部署批准

如何使我的设计适合与我的框架尺寸不同的视口?

在 vscode 中找不到 htmltagwrap 命令

在 jinja 模板内的 html 表中嵌套 For 循环

正确使用视频作为背景

CSS 网格自动高度不适用于特定网格区域

隐藏在标题后面的下拉菜单

无法在 css 的 body 标签中正确呈现(内联显示)