Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

How do I change <h1> formatting in CSS?

This is a discussion on How do I change <h1> formatting in CSS? within the General Discussion forums, part of the vBulletin SEO Discussion category; I want to use <h1> tags in my navbits around the thread title but I do not want the text ...

  1. #1
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times

    How do I change <h1> formatting in CSS?

    I want to use <h1> tags in my navbits around the thread title but I do not want the text to be huge like the default <h1>.

    I have tried something like:
    h1 {
    font-size: 11;
    }

    etc etc but it doesnt work

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    That should do it. Try 11pt

  3. #3
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    I use this:
    h1 { font-size: 175%; font-weight: bold; text-align: center; }

    And have my thread title shown inside an H1 at the top of SHOWTHREAD. Makes it easier to see the thread title.

    Example: http://www.fireblades.org/forums/gen...anews-com.html

  4. #4
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    Or try this,

    .h1navbar {
    font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    margin:0;
    font-size: 14px;
    font-weight: bold;
    display: inline;
    }

    And use the class in the navbar:

    <h1 class="h1navbar">




    BTW this is a great thing, it helped a lot on our forums.

    We have the thread title set as H2, also the navbar

    We use H1 for the board title, on top of our logo which is a background works great (as seen on www.seochat.com)

  5. #5
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    This is what happens when i use that, dutch
    Attached Thumbnails Attached Thumbnails navbar.jpg  

  6. #6
    Senior Member
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    212
    Liked
    0 times
    Font-sizes with CSS can be done in many ways. Let me dig out my Cascading Style Sheets O'Reilly manual. Here are some examples:

    h1 { font-size: 24pt; }
    h1 { font-size: 2pc; }
    h1 { font-size: 1.0in; }
    h1 { font-size: 1.56cm; }
    h1 { font-size: 12.7mm; }
    h1 { font-size: 150%; }
    h1 { font-size: 1.5em; }
    h1 { font-size: x-large; }

    One thing to watch out for, that would definitely constitute shady SEO: don't let your h1 sizes be declared as smaller than your h2's or h3's. IMO, your safest bet is to define all three of them, in descending order.
    Listings and promotion for hot rod and muscle car websites: The Crankshaft Coalition

  7. #7
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    Quote Originally Posted by Jonathan
    Font-sizes with CSS can be done in many ways. Let me dig out my Cascading Style Sheets O'Reilly manual. Here are some examples:

    h1 { font-size: 24pt; }
    h1 { font-size: 2pc; }
    h1 { font-size: 1.0in; }
    h1 { font-size: 1.56cm; }
    h1 { font-size: 12.7mm; }
    h1 { font-size: 150%; }
    h1 { font-size: 1.5em; }
    h1 { font-size: x-large; }

    One thing to watch out for, that would definitely constitute shady SEO: don't let your h1 sizes be declared as smaller than your h2's or h3's. IMO, your safest bet is to define all three of them, in descending order.
    So given the attachment above... how would you set it up?

    Would you wrap <h1> Around the "Ford Mustang Forums" title
    <h2> around the thread title?

    Now how do I keep the same formatting as the regular navbar instead of what it looks like in the attachment above?

    Basically I am asking, given my site, http://www.mustangevolution.com/forum/ if it was yours how would you setup the SEO and use the appropriate tags?

  8. #8
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    Quote Originally Posted by BrentWilson
    This is what happens when i use that, dutch
    something is set not right, that shows no css change in h1

  9. #9
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    Where should I wrap the <h1>'s?

    HTML Code:
    <!-- breadcrumb, login, pm info -->
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    	<td class="alt1" width="100%">
    		<if condition="is_array($navbits)">
    			<table cellpadding="0" cellspacing="0" border="0">
    			<tr valign="bottom">
    				<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
    				<td>&nbsp;</td>
    				<td width="100%"><span class="navbar"><a href="/forum/" accesskey="1">Ford Mustang Forums</a></span>$navbits[breadcrumb]</td>
    			</tr>
    			<tr>
    				<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a><strong>$navbits[lastelement]</strong></td>
    			</tr>
    			</table>			
    		<else />
    			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>Ford Mustang Forums</strong></div>
    		</if>
    	</td>	
    	
    	<if condition="$bbuserinfo['userid']">
    	
    		<td class="alt2" valign="top" nowrap="nowrap">
    		<div class="smallfont">
    			<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
    			<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
    			<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
    		</div>
    		</td>
    		
    	<else />
    		
    		<td class="alt2" nowrap="nowrap" style="padding:0px">
    			
    		<!-- login form -->
    		<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
    		<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
    		<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    		<tr>
    			<td class="smallfont">$vbphrase[username]</td>
    			<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
    			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
    		</tr>
    		<tr>
    			<td class="smallfont">$vbphrase[password]</td>
    			<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
    			<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
    		</tr>
    		</table>
    		<input type="hidden" name="s" value="$session[sessionhash]" />
    		<input type="hidden" name="do" value="login" />		
    		<input type="hidden" name="vb_login_md5password" />
    		<input type="hidden" name="vb_login_md5password_utf" />
    		</form>
    		<!-- / login form -->
    			
    		</td>
    		
    	</if>	
    	
    </tr>
    </table>
    <!-- / breadcrumb, login, pm info -->

  10. #10
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    <h1 class="h1navbar">$navbits[lastelement]</h1>

    and

    <h1 class="h1navbar">$vboptions[bbtitle]</h1>

    or use H2 like I did if your using H1 for logo

  11. #11
    Senior Member
    Real Name
    Mike Simonds
    Join Date
    Oct 2005
    Location
    Texas
    Posts
    240
    Liked
    1 times
    Can someone show me where i can add the title to my threads. What template do i need to edit

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hi BrentWilson,

    Now how do I keep the same formatting as the regular navbar instead of what it looks like in the attachment above?
    Try the following style for your H1:
    h1 { font-size: 10pt; font-weight: bold; text-align: left; display:inline; }
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #13
    Senior Member
    Real Name
    Mike Simonds
    Join Date
    Oct 2005
    Location
    Texas
    Posts
    240
    Liked
    1 times
    Quote Originally Posted by msimonds
    Can someone show me where i can add the title to my threads. What template do i need to edit
    NM, just stupidty, i found it

  14. #14
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk
    Hi BrentWilson,



    Try the following style for your H1:

    That worked! Thanks

  15. #15
    Member Griffin's Avatar
    Real Name
    Sean James
    Join Date
    Jan 2006
    Location
    Sydney Australia
    Posts
    89
    Liked
    0 times
    Ive just added these h1 tags now, did everyone see a big difference after they added h1 tags to there titles?
    Bluepearl Design
    http://www.bluepearl-design.com - Design Community
    http://www.musclesci.com - BodyBuilding Community
    http://www.vbulletin-templates.com - Free vBulletin Templates

Page 1 of 2 1 2 LastLast

Similar Threads

  1. I want change license
    By sorenlowell in forum Troubleshooting
    Replies: 0
    Last Post: 02-22-2006, 09:31 PM
  2. Help me change License
    By sorenlowell in forum Troubleshooting
    Replies: 2
    Last Post: 02-12-2006, 09:30 PM
  3. Change Licensed URL
    By Scott in forum General Discussion
    Replies: 3
    Last Post: 01-31-2006, 03:53 PM
  4. change of server
    By MMAFan in forum General Discussion
    Replies: 2
    Last Post: 11-26-2005, 05:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •