HTML BorderBackground elements

ساخت وبلاگ
Hello All,

I am brand new to HTML and was hoping for some guidance on formatting a title.
My goal is to put each letter of the title in its own box where the boxes are all equal size and equal spacing. Currently the way I am trying to accomplish this, the box fits to the size of the letter it contains. The way I have achieved this is by using span elements for each letter with a CSS class to apply the style. I am guessing there is a more efficient way to do this with the whole word. The code and current display is below. Anything helps, and I would like to avoiid having to do graphic design if possible.

Click image for larger version. 
Name:	Example.PNG 
Views:	0 
Size:	2.0 KB 
ID:	17746

<h1><span class='titlebox1'>W</span><span class='titlebox1'>E</span><span class='titlebox1'>B</span></h1>

.titlebox1{
border:1px solid black;
padding:2px;
background-color:white;
color:black;
width:48px;
height:48px;
}
Attached Thumbnails
Click image for larger version. 
Name:	Example.PNG 
Views:	N/A 
Size:	2.0 KB 
ID:	17746 
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 143 تاريخ : شنبه 21 بهمن 1396 ساعت: 5:39