Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I can't get the font-size to take effect.

    I'm trying change the font size for my title (the WEBSIO part) but for some reason it won't take effect. Any help would be appreciated. Here is the html and css. I've also highlighted the effected area.

    HTML
    Code:
        <body>
    		<div class="container_24">
    			<header>
    				<div class="grid_5" title">WEBSIO</div>
    				<nav class="grid_19">
    					<ul>
    						<li>Home</li>
    						<li>About</li>
    						<li>Services</li>
    						<li>Portfolio</li>
    						<li>Contact</li>
    					</ul>
    				</nav>
    			</header>
    		</div>
    	</body>
    </html>
    CSS
    Code:
    .title {
    	font-size: 33px;
    	font-family: corbel;
    }
    Thanks.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    There is a syntax error. The value of the class attribute is closed after “grid5” (see the double quotes). The browser thinks you have a title attribute following but it has no value, just a random double quote.

  • Users who have thanked VIPStephan for this post:

    AcerPaws (03-20-2013)

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ahh I see it now. I don't know why I put that there.

    Thanks Stephan, that fixed it.


  •  

    Tags for this Thread

    Posting Permissions

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