开发者

HTML - How to add a box within a box with some text centered in HTML?

开发者 https://www.devze.com 2023-03-21 16:37 出处:网络
I want it to look something like the image below 开发者_JS百科Something like this?: http://jsfiddle.net/JA7vh/JSFiddle: http://jsfiddle.net/Tq8Ff/4/

I want it to look something like the image below

开发者_JS百科

HTML - How to add a box within a box with some text centered in HTML?


Something like this?:

http://jsfiddle.net/JA7vh/


JSFiddle: http://jsfiddle.net/Tq8Ff/4/

Code:

<div class="wrapper">
    <span class="inner">new message form heaquarter</div>
</div>

.inner {
    text-align:center;
    background-color: white;
}

.wrapper {
 text-align:center;
 background-color: purple;
  padding: 10px;  
}


Here you go: http://jsfiddle.net/a3U5a/

0

精彩评论

暂无评论...
验证码 换一张
取 消