Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2009, 06:30 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default class problem

Hi,

having a problem with <p> tag, just a little problem

.Quote {
font:"Trebuchet MS";
font-size:18;
}
this code is not working,

but, this code is working
.Quote {
text-indent:50px;
}


my page code is like

<div id="content">
<p class="Quote">Sample text </p>
<div>

dont know what is missing, does <p>tag do not support font property, or any other problem...

all suggestions are welcome,
thanks for your consideration

regards
ashok sharma
 
Old March 4th, 2009, 05:32 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It certainly does understand font settings, but your CSS is not correct:

font-size:18;

Is not legal CSS; try:

font-size:18px;

Additionally, make sure you have the Trebuchet font on your system, as not all systems have it, and finally make the font declaration more explicit:

font-family:'Trebuchet MS';

Just using "font" is called the short hand syntax, but it's used for supplying more values: http://www.w3schools.com/css/css_font.asp

Cheers.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
beetle_jaipur (March 5th, 2009)
 
Old March 5th, 2009, 03:34 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default thanks

thanks for your reply

problem solved

best regards
ashok sharma





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Globals class pedroabs BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 June 12th, 2008 01:11 PM
Class building problem ps_kaushik C# 0 August 11th, 2006 06:48 AM
Problem with class.......help Pettman ASP.NET 2.0 Basics 2 March 1st, 2006 03:51 PM
problem with using WebRequest class in C# anilkumarbv General .NET 0 December 28th, 2004 02:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.