Kieran-R Posted December 10, 2010 Share Posted December 10, 2010 Hey Well Im trying to get a sort of "heading" I could use in the html of my templete. For example: Like a sub heading. To use this, ive been using the following CSS code: .contenth { background-color: #000000; border: 1px solid #444; padding: 1px; color: #E9AB17; font-weight: bold; -moz-border-radius:5px; font-size: 12px; } And in the HTML: <tr><td class="contenth">Bla Bla</tr></td> But when this shows in the HTML, it just shows as text. Any ideas on to make this look like it is suppoed to? Just to clarify, The css, and HTML I have posted is from a view source of a site I was on. It wont be used exactly like this on my site, Its just so I get the idea. Im new to CSS, so please consider how noobish I may be at this programming language :( Any help is GREATLY appreciated by the way! - Kieran-R Quote Link to comment Share on other sites More sharing options...
Djkanna Posted December 10, 2010 Share Posted December 10, 2010 <tr><td class="contenth">Blah</td></tr> Quote Link to comment Share on other sites More sharing options...
Spudinski Posted December 11, 2010 Share Posted December 11, 2010 I normally use div or span for headings. Maybe you should learn about the selector signs in CSS first. Quote Link to comment Share on other sites More sharing options...
Coly010 Posted December 13, 2010 Share Posted December 13, 2010 is it a # u use for class or a . Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted December 13, 2010 Share Posted December 13, 2010 "." is for class "#" is for id Quote Link to comment Share on other sites More sharing options...
Coly010 Posted December 14, 2010 Share Posted December 14, 2010 thx Quote Link to comment Share on other sites More sharing options...
morgan1122 Posted December 29, 2010 Share Posted December 29, 2010 Cheers Helps Abit Quote Link to comment Share on other sites More sharing options...
biotinpy12 Posted November 26, 2012 Share Posted November 26, 2012 the use for html templates . Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted March 14, 2013 Share Posted March 14, 2013 <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> Wow, this makes no sense. I believe the op about 2 years ago was talking about setting up a header image using CSS classes and ids not using <h> tags lol Quote Link to comment Share on other sites More sharing options...
Joel Posted March 14, 2013 Share Posted March 14, 2013 http://2.bp.blogspot.com/_bpMgKpXKabQ/TKMrEZGoOLI/AAAAAAAAARQ/JNp1BmVlEB4/s1600/Monkey-Mia-MJK-Australia.jpg Quote Link to comment Share on other sites More sharing options...
sniko Posted March 14, 2013 Share Posted March 14, 2013 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.