-
- <Style>
-
- Li {
-
- Margin: 2px 3px 3px 8px;
-
- Padding: 5px;
-
- Background: URL (/images/sider_siteinfo.gif) No-repeat 0 50%;
-
- List-style-type: none;
-
- List-style-position: inside;
-
- }
-
-
-
- </Style>
-
-
- <Div>
-
-
-
- <Ul>
-
- <Li>Younger brother, debut, not familiar with life, please advise</Li>
-
- <Li>Younger brother, debut, not familiar with life, please advise</Li>
- <Li>Younger brother, debut, not familiar with life, please advise</Li>
-
- <Li>Younger brother, debut, not familiar with life, please advise</Li>
-
- <Li>Younger brother, debut, not familiar with life, please advise</Li>
-
- </Ul>
- </Div>
<Style> Li {margin: 2px 3px 3px 8px; padding: 5px; Background: URL (/images/sider_siteinfo.gif) No-repeat 0 50%; List-style-type: none; list-style-position: Inside ;}</style> <div> <ul> <li> younger brother, out of the road, unfamiliar with the world. Please advise </LI> <li> younger brother, debut, not familiar with life, please advise </LI> <li> younger brother, debut, not familiar with life, please advise </LI> <li> younger brother, debut, not familiar with life, please advise </LI> <li> younger brother, debut, not familiar with life. Please advise </LI> </ul> </div>
50% indicates vertical center!
Controls the content spacing between images and Li.
1. acceleration can increase the spacing.
2. Padding-left controls the content spacing between the image and Li:
- <Style>
- Li {
- Margin: 2px 3px 3px 8px;
- Padding-left: 25px;
- Background: URL (/images/sider_siteinfo.gif) No-repeat 0 50%;
- List-style-type: none;
- List-style-position: inside;
- }
<Style> Li {margin: 2px 3px 3px 8px; padding-left: 25px; Background: URL (/images/sider_siteinfo.gif) No-repeat 0 50%; List-style-type: none; List-style-position: Inside ;}
If the image is not in the background color, addVertical-align: Middle
-
- <Ul>
-
- <Li> <IMG Style= 'Vertical-align: middle'SRC='Icon01.gif' />Align the image with me.</Li>
- LI IMG style = 'vertical-align: middle' SRC using 'icon01.gif ' /> align the image with mE LI
- LI > IMG style = 'vertical-align: middle' SRC using 'icon01.gif ' /> align the image with mE LI
- LI IMG style = 'vertical-align: middle' SRC using 'icon01.gif ' /> align the image with mE LI
- <Li> <IMG Style='Vertical-align: middle' SRCInvalid 'icon01.gif'/>Align the image with me.</Li>
-
- </Ul>
- the image above must be aligned with mE
- the image above must be aligned with mE
- the image above must be aligned with mE
- the image above must be aligned with mE
- align the image with mE