Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-27-2010, 06:09 PM Basic css problem.
Junior Talker

Posts: 3
Name: Tony
Trades: 0
But I´m too dumb to solve it I´ll translate from Swedish.

I am trying to format Times New Roman in a Div section (not sure it is a Div) but don´t know the right css code. This is part of the css code:

#middle{
padding:10px;
font-size:1.2em;
margin-bottom:10px;
border:2px dashed #999999;
}

In there there is a div section that in this case is a <p> in the HTML, in that <p> section by using css I want to change the font to Times New Roman.

I´ve tried this but it doesn´t work except for the margin part, that works:

div#middle p{
margin-bottom: 20px;
font-family:"Times New Roman";
}

Hope you understand what I mean.

Thanx!
Anthony Wild is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-27-2010, 08:15 PM Re: Basic css problem.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Actually the #middle p should work.. however, there may be a specificity issue that's in your way. Can we see the rest of the code.. or a url for the problem page please?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-28-2010, 06:52 AM Re: Basic css problem.
Junior Talker

Posts: 3
Name: Tony
Trades: 0
Here is the HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="examination2.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Examination del 3 - boxmodellen</title>
</head>
<body>
<div id="container">
<div id="header">
<h1>Boxmodellens examination</h1>
<p>Detta är ett stycke text som befinner sig i div-elementet "header". Ovanför denna text finns en rubrik av typen h1. Boxmodellen går att läsa om på <a href="http://www.w3.org">World Wide Web Consortium</a>.</p>
</div>
<div id="middle">
<h2>Rubrik 1 för div-elementet "middle"</h2>
<p>Detta är det första stycke text som befinner sig i div-elementet "middle". Under denna text följer en rubrik av typen h2 som skall se likadan ut som den rubrik som befinner sig ovanför denna text.</p>
<h2>Rubrik 2 för div-elementet "middle"</h2>
<p>Detta är det andra stycke text som befinner sig i div-elementet "middle". I denna text finns även en <a href="http://www.informatik.umu.se/">länk till institutionen för informatik.</a> Nedanför detta stycke följer en numrerad lista.</p>
<ol>
<li>Detta är det första listelementet i denna numrerade lista.</li>
<li>Observera att numreringen ligger innanför ramen!</li>
</ol>
<p>Detta är det avslutande stycket med text i div-elementet "middle". Nedanför detta div-element följer ett annat div-element som kallas "footer". </p>
</div>
<div id="footer">
<p>Avslutande text som befinner sig i div-elementet "footer". <a href="mailto:cbwd@informatik.umu.se">Detta är en länk.</a></p>
</div>
</div>
</body>
</html>
Anthony Wild is offline
Reply With Quote
View Public Profile
 
Old 05-28-2010, 03:22 PM Re: Basic css problem.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Thanks, but I need to see the rest of the css too
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-28-2010, 05:18 PM Re: Basic css problem.
Madman340's Avatar
Web Designer

Posts: 571
Name: Jared
Location: Florida
Trades: 1
Is the page live? Please link us to it if so... We could manipulate the CSS manually from the page using browser tools and come up with the answer rather fast.

Q: Have you tried it without the quotes around Times New Roman?
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 05-28-2010, 08:53 PM Re: Basic css problem.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have to have the quotes around any font name that includes spaces, so no, he can't remove them.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-29-2010, 06:33 AM Re: Basic css problem.
Junior Talker

Posts: 3
Name: Tony
Trades: 0
Thanx guys but I have fixed the problem, but I am new at this so I´ll be back!
Anthony Wild is offline
Reply With Quote
View Public Profile
 
Old 06-03-2010, 06:43 PM Re: Basic css problem.
Junior Talker

Posts: 4
Trades: 0
how did you fix it?
__________________

Please login or register to view this content. Registration is FREE
goodboy2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Basic css problem.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31025 seconds with 12 queries