Simple.
<div style="background-color:YOUR_COLOR; width:YOUR_WIDTH; margin:MARGIN;">TEXT</div>
Uses:
background-color
is your background-color. You can also usecolor
for text color. Refer to colors here.width
is your chosen width for the div. You can also use px at the end of the number to define pixels length. Refer to a tutorial heremargin
is defining the margin from all directions (top, bottom, left and right). You can also define specific margins for every direction by usingmargin-left
margin-right
margin-top
andmargin-bottom
. Refer to a tutorial about it here.
solved How do I change the “design” of a
? [closed]