Options

Simple bullets HTML / CSS block

SmugN00bSmugN00b Registered Users Posts: 6 Beginner grinner
edited July 3, 2014 in SmugMug Customization
I need to add a HTML block with bullets.

Now I undertsand the whole ul/li structure, but what CSS class can I call that will directly reference styles in use for heading? (ie. h1, h2, normal text, etc.?)

Thanks

Comments

  • Options
    Hikin' MikeHikin' Mike Registered Users Posts: 5,458 Major grins
    edited July 2, 2014
    I don't understand your question. If you want bullets using <h1> tages, text then you use something like this:
    <ul>
    	<li><h1>Header Here</h1></li>
    	<ul>
    		<li><h2>Sub Header Here</h2>
    			<ul>
    				<li>Text Here</li>
    				<li>More Text Here</li>
    				<li>Even More Text Here</li>
    			</ul>
    		</li>	
    	</ul>		
    	<ul>
    		<li><h2>Another Sub Header Here</h2>
    			<ul>
    				<li>Text Here</li>
    				<li>More Text Here</li>
    				<li>Even More Text Here</li>
    			</ul>
    		</li>	
    	</ul>		
    </ul>
    

    If that isn't your question, please post more info.
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited July 2, 2014
    You can manually add bullets right in with the text.

    &#8226;

    I find it easier to add a div and use margin-left for indent rather then a list.
    <div style="margin-left: 10px;">
    &#8226; text
    &#8226; text
    </div>

    <div style="margin-left: 10px;">
    • text
    • text
    </div>

    The only problem is the wrapping of long lines to the bullet and not extra indent to the "text" like a list would do.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    SmugN00bSmugN00b Registered Users Posts: 6 Beginner grinner
    edited July 2, 2014
    Thanks everyone, I used Hikin' Mike code along with a CSS tweak (since the bullets didn't show without it) :

    ul {
    list-style: outside;
    margin-left: 24px;
    padding: 5px 0;
    }
  • Options
    ChancyRatChancyRat Registered Users Posts: 2,141 Major grins
    edited July 3, 2014
    Yes, I believe SM's version of HTML doesn't allow lists without CSS.
Sign In or Register to comment.