Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 内有文本的CSS形状_Html_Css - Fatal编程技术网

Html 内有文本的CSS形状

Html 内有文本的CSS形状,html,css,Html,Css,我需要帮助。到目前为止,我能够创建左div,但我仍然使用第二个div,从右开始的一个。有小费吗 @mihal如果你也分享一些HTML和css,我们会很有帮助,只要看看图片,就很难识别和修复它。说明你到底想做什么以及到目前为止你做了什么。@mihal不确定你是否共享了正确的图像css形状,它在背景中有图像,而你的css没有引用。我从psd中剪切了那张图片…背景颜色不重要。我只需要对齐这两段文字 This is the HTML <div class="shape"> ALEGET

我需要帮助。到目前为止,我能够创建左div,但我仍然使用第二个div,从右开始的一个。有小费吗


@mihal如果你也分享一些HTML和css,我们会很有帮助,只要看看图片,就很难识别和修复它。说明你到底想做什么以及到目前为止你做了什么。@mihal不确定你是否共享了正确的图像css形状,它在背景中有图像,而你的css没有引用。我从psd中剪切了那张图片…背景颜色不重要。我只需要对齐这两段文字
This is the HTML

<div class="shape">
  ALEGETI MEDIEREA
    </div>
      .shape{
  text-align:center;
  background-color:#8ed7c2;
  width:50%;
  height:178px;
  line-height:178px;
  color:#fef5ca;
  float:left;
  position:relative;
  font-size:50px;
  top:20px;


}
.shape:after{
  content:"";
  width:0px;
  height:178px;
  border-top:178px solid rgba(3,78,136,0.7);
  border-right:60px solid transparent;
  position:absolute;
   left:100%;


}
This is the HTML

<div class="shape">
  ALEGETI MEDIEREA
    </div>
      .shape{
  text-align:center;
  background-color:#8ed7c2;
  width:50%;
  height:178px;
  line-height:178px;
  color:#fef5ca;
  float:left;
  position:relative;
  font-size:50px;
  top:20px;


}
.shape:after{
  content:"";
  width:0px;
  height:178px;
  border-top:178px solid rgba(3,78,136,0.7);
  border-right:60px solid transparent;
  position:absolute;
   left:100%;


}