Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2009, 06:30 AM
Authorized User
 
Join Date: Feb 2006
Location: jaipur, rajasthan, India.
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
Reply With Quote
  #2 (permalink)  
Old March 4th, 2009, 05:32 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
beetle_jaipur (March 5th, 2009)
  #3 (permalink)  
Old March 5th, 2009, 03:34 AM
Authorized User
 
Join Date: Feb 2006
Location: jaipur, rajasthan, India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.