h1 padding: 10px : Header « Tags « HTML / CSS

HTML / CSS » Tags » Header 
h1 padding: 10px

<style type="text/css">

h1  {color: white;
     background-color: black;
     text-align: center;
   padding: 10px;}

<h1>Contents of the &lt;h1&gt; Element</h1>

Related examples in the same category
2.Inline style for header 3
3.Header font setting
4.Heading with background
5.header with absolute position
6.Header text alignment: center
7.Set font size for

8.header 2 background image setting
9.Set font size to 1em

in header


in header section

14.Heading with margin
15.Use bold font to highlight heading
16.Adding top and bottom margin for heading
17.Set font for header 1
18.Background with bottom border
19.Border for header
20.Inline style for header

overflow hidden

22.Add the Left Margin
23.Header content section
24.Header, image and content
25.News Header style
26.A fixed header
27.Adding links in to the header
28.Letter Spacing in Headlines
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.